()
| 598 | |
| 599 | #[test] |
| 600 | fn test_diff_op_delete() { |
| 601 | let op = DiffOp::delete(5, 5, 3); |
| 602 | assert!(op.is_delete()); |
| 603 | assert!(op.is_change()); |
| 604 | assert_eq!(op.old_range(), 5..8); |
| 605 | assert_eq!(op.new_range(), 5..5); |
| 606 | assert_eq!(op.deletions(), 3); |
| 607 | assert_eq!(op.insertions(), 0); |
| 608 | } |
| 609 | |
| 610 | #[test] |
| 611 | fn test_diff_op_replace() { |
nothing calls this directly
no outgoing calls
no test coverage detected