MCPcopy Create free account
hub / github.com/alexfertel/rust-algorithms / empty_strings

Function empty_strings

src/string/hamming_distance.rs:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22 #[test]
23 fn empty_strings() {
24 let result = hamming_distance("", "");
25 assert_eq!(result, 0);
26 }
27 #[test]
28 fn distance_zero() {
29 let result = hamming_distance("rust", "rust");

Callers

nothing calls this directly

Calls 1

hamming_distanceFunction · 0.85

Tested by

no test coverage detected