()
| 609 | |
| 610 | #[test] |
| 611 | fn test_diff_op_replace() { |
| 612 | let op = DiffOp::replace(2, 3, 2, 1); |
| 613 | assert!(op.is_replace()); |
| 614 | assert!(op.is_change()); |
| 615 | assert_eq!(op.old_range(), 2..5); |
| 616 | assert_eq!(op.new_range(), 2..3); |
| 617 | assert_eq!(op.deletions(), 3); |
| 618 | assert_eq!(op.insertions(), 1); |
| 619 | } |
| 620 | |
| 621 | #[test] |
| 622 | fn test_diff_op_display() { |
nothing calls this directly
no outgoing calls
no test coverage detected