()
| 412 | |
| 413 | #[test] |
| 414 | fn test_identical() { |
| 415 | let old = lines(&["a\n", "b\n", "c\n"]); |
| 416 | let new = lines(&["a\n", "b\n", "c\n"]); |
| 417 | |
| 418 | let result = diff(&old, &new); |
| 419 | |
| 420 | assert!(result.is_unchanged()); |
| 421 | } |
| 422 | |
| 423 | #[test] |
| 424 | fn test_single_insert() { |