()
| 1567 | |
| 1568 | #[test] |
| 1569 | fn test_line_ops_display() { |
| 1570 | let ops = LineOps::insert( |
| 1571 | test_branch_id(0), |
| 1572 | None, |
| 1573 | vec![ |
| 1574 | LeafOp::Insert { |
| 1575 | after: None, |
| 1576 | kind: TokenKind::Word, |
| 1577 | content: b"Hello".to_vec(), |
| 1578 | }, |
| 1579 | LeafOp::Insert { |
| 1580 | after: None, |
| 1581 | kind: TokenKind::Word, |
| 1582 | content: b"World".to_vec(), |
| 1583 | }, |
| 1584 | ], |
| 1585 | ); |
| 1586 | let display = format!("{}", ops); |
| 1587 | assert!(display.contains("insert")); |
| 1588 | assert!(display.contains("2 tokens")); |
| 1589 | } |
| 1590 | |
| 1591 | #[test] |
| 1592 | fn test_line_ops_into_parts() { |
nothing calls this directly
no test coverage detected