100-days-of-rust/Week-04/Day-28_Word-Search/day28/tests/example.rs

21 lines
462 B
Rust

#[cfg(test)]
mod example {
use day28::word_search;
#[test]
fn example() {
assert_eq!(
word_search(
&[
vec!['o', 'a', 'a', 'n'],
vec!['e', 't', 'a', 'e'],
vec!['i', 'h', 'k', 'r'],
vec!['i', 'f', 'l', 'v']
],
&["oath", "pea", "eat", "rain"]
),
["oath", "eat"]
)
}
}