()
| 285 | |
| 286 | #[test] |
| 287 | fn test_insert_at_start() { |
| 288 | let old = lines(&["b\n", "c\n"]); |
| 289 | let new = lines(&["a\n", "b\n", "c\n"]); |
| 290 | |
| 291 | let result = diff(&old, &new); |
| 292 | |
| 293 | assert_eq!(result.insertions(), 1); |
| 294 | assert_eq!(result.deletions(), 0); |
| 295 | } |
| 296 | |
| 297 | #[test] |
| 298 | fn test_insert_at_end() { |