()
| 777 | |
| 778 | #[test] |
| 779 | fn test_diff_delete() { |
| 780 | let old = b"line1\nline2\nline3\n"; |
| 781 | let new = b"line1\nline3\n"; |
| 782 | let result = diff_text(old, new, Algorithm::Myers); |
| 783 | assert!(!result.is_unchanged()); |
| 784 | assert_eq!(result.deletions(), 1); |
| 785 | assert_eq!(result.insertions(), 0); |
| 786 | } |
| 787 | |
| 788 | #[test] |
| 789 | fn test_diff_replace() { |
nothing calls this directly
no test coverage detected