MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_word_diff_many_changes

Function test_word_diff_many_changes

atomic-core/src/diff/word.rs:1248–1255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1246
1247 #[test]
1248 fn test_word_diff_many_changes() {
1249 let old = b"a b c d e";
1250 let new = b"w x y z";
1251
1252 let result = word_diff(old, new);
1253 assert!(result.has_changes());
1254 assert!(result.edit_distance() > 0);
1255 }
1256
1257 #[test]
1258 fn test_merge_adjacent_equals() {

Callers

nothing calls this directly

Calls 1

word_diffFunction · 0.85

Tested by

no test coverage detected