()
| 804 | |
| 805 | #[test] |
| 806 | fn test_common_affixes_all_equal() { |
| 807 | let old = vec![1, 2, 3]; |
| 808 | let new = vec![1, 2, 3]; |
| 809 | let (prefix, suffix) = common_affixes(&old, &new); |
| 810 | assert_eq!(prefix, 3); |
| 811 | assert_eq!(suffix, 0); // All consumed by prefix |
| 812 | } |
| 813 | |
| 814 | #[test] |
| 815 | fn test_common_affixes_none() { |
nothing calls this directly
no test coverage detected