()
| 587 | |
| 588 | #[test] |
| 589 | fn test_diff_op_insert() { |
| 590 | let op = DiffOp::insert(3, 3, 2); |
| 591 | assert!(op.is_insert()); |
| 592 | assert!(op.is_change()); |
| 593 | assert_eq!(op.old_range(), 3..3); |
| 594 | assert_eq!(op.new_range(), 3..5); |
| 595 | assert_eq!(op.deletions(), 0); |
| 596 | assert_eq!(op.insertions(), 2); |
| 597 | } |
| 598 | |
| 599 | #[test] |
| 600 | fn test_diff_op_delete() { |
nothing calls this directly
no outgoing calls
no test coverage detected