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

Function test_word_diff_all_inserted

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

Source from the content-addressed store, hash-verified

1011
1012 #[test]
1013 fn test_word_diff_all_inserted() {
1014 let result = word_diff(b"", b"hello world");
1015 assert!(result.has_changes());
1016 assert!(result.insertions() > 0);
1017 assert_eq!(result.deletions(), 0);
1018 }
1019
1020 #[test]
1021 fn test_word_diff_all_deleted() {

Callers

nothing calls this directly

Calls 1

word_diffFunction · 0.85

Tested by

no test coverage detected