()
| 1305 | |
| 1306 | #[test] |
| 1307 | fn test_compare_content_empty_old() { |
| 1308 | let old = b""; |
| 1309 | let new = b"hello\n"; |
| 1310 | |
| 1311 | let ops = compare_content(old, new, Algorithm::Myers); |
| 1312 | |
| 1313 | // Should be all inserts |
| 1314 | assert!(ops.iter().all(|op| op.is_insert() || op.is_equal())); |
| 1315 | } |
| 1316 | |
| 1317 | #[test] |
| 1318 | fn test_compare_content_empty_new() { |
nothing calls this directly
no test coverage detected