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

Function test_word_diff_all_deleted

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

Source from the content-addressed store, hash-verified

1019
1020 #[test]
1021 fn test_word_diff_all_deleted() {
1022 let result = word_diff(b"hello world", b"");
1023 assert!(result.has_changes());
1024 assert_eq!(result.insertions(), 0);
1025 assert!(result.deletions() > 0);
1026 }
1027
1028 #[test]
1029 fn test_word_diff_single_word_change() {

Callers

nothing calls this directly

Calls 1

word_diffFunction · 0.85

Tested by

no test coverage detected