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

Function test_z_array

src/string/z_algorithm.rs:56–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55 #[test]
56 fn test_z_array() {
57 let string = "aabaabab";
58 let array = z_array(string.as_bytes());
59 assert_eq!(array, vec![0, 1, 0, 4, 1, 0, 1, 0]);
60 }
61
62 #[test]
63 fn pattern_in_text() {

Callers

nothing calls this directly

Calls 1

z_arrayFunction · 0.85

Tested by

no test coverage detected