MCPcopy Create free account
hub / github.com/douchuan/algorithm / brute_force_search

Function brute_force_search

tests/test_strings.rs:344–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342
343#[test]
344fn brute_force_search() {
345 let data = substr_data();
346 for (pat, txt, pos) in data {
347 assert_eq!(pos, brute_force::search1(pat, txt));
348 assert_eq!(pos, brute_force::search2(pat, txt));
349 }
350}
351
352#[test]
353fn kmp() {

Callers

nothing calls this directly

Calls 1

substr_dataFunction · 0.85

Tested by

no test coverage detected