()
| 865 | |
| 866 | #[test] |
| 867 | fn test_common_affixes_all_equal() { |
| 868 | let old = vec![1, 2, 3]; |
| 869 | let new = vec![1, 2, 3]; |
| 870 | let (prefix, suffix) = common_affixes(&old, &new); |
| 871 | assert_eq!(prefix, 3); |
| 872 | assert_eq!(suffix, 0); // All consumed by prefix |
| 873 | } |
| 874 | |
| 875 | #[test] |
| 876 | fn test_common_affixes_none() { |
nothing calls this directly
no test coverage detected