()
| 1283 | |
| 1284 | #[test] |
| 1285 | fn test_compare_content_insertion() { |
| 1286 | let old = b"hello\nworld\n"; |
| 1287 | let new = b"hello\nbeautiful\nworld\n"; |
| 1288 | |
| 1289 | let ops = compare_content(old, new, Algorithm::Myers); |
| 1290 | |
| 1291 | // Should have at least one insert |
| 1292 | assert!(ops.iter().any(|op| op.is_insert())); |
| 1293 | } |
| 1294 | |
| 1295 | #[test] |
| 1296 | fn test_compare_content_deletion() { |
nothing calls this directly
no test coverage detected