()
| 342 | |
| 343 | #[test] |
| 344 | fn 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] |
| 353 | fn kmp() { |
nothing calls this directly
no test coverage detected