()
| 838 | |
| 839 | #[test] |
| 840 | fn test_diff_delete() { |
| 841 | let old = b"line1\nline2\nline3\n"; |
| 842 | let new = b"line1\nline3\n"; |
| 843 | let result = diff_text(old, new, Algorithm::Myers); |
| 844 | assert!(!result.is_unchanged()); |
| 845 | assert_eq!(result.deletions(), 1); |
| 846 | assert_eq!(result.insertions(), 0); |
| 847 | } |
| 848 | |
| 849 | #[test] |
| 850 | fn test_diff_replace() { |
nothing calls this directly
no test coverage detected