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

Function test_word_diff_identical

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

Source from the content-addressed store, hash-verified

1002
1003 #[test]
1004 fn test_word_diff_identical() {
1005 let result = word_diff(b"hello world", b"hello world");
1006 assert!(!result.has_changes());
1007 assert!(result.is_unchanged());
1008 assert_eq!(result.insertions(), 0);
1009 assert_eq!(result.deletions(), 0);
1010 }
1011
1012 #[test]
1013 fn test_word_diff_all_inserted() {

Callers

nothing calls this directly

Calls 1

word_diffFunction · 0.85

Tested by

no test coverage detected