()
| 828 | |
| 829 | #[test] |
| 830 | fn test_diff_insert() { |
| 831 | let old = b"line1\nline3\n"; |
| 832 | let new = b"line1\nline2\nline3\n"; |
| 833 | let result = diff_text(old, new, Algorithm::Myers); |
| 834 | assert!(!result.is_unchanged()); |
| 835 | assert_eq!(result.insertions(), 1); |
| 836 | assert_eq!(result.deletions(), 0); |
| 837 | } |
| 838 | |
| 839 | #[test] |
| 840 | fn test_diff_delete() { |
nothing calls this directly
no test coverage detected