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

21 lines
462 B
Rust
Raw Normal View History

2024-08-22 12:03:10 +00:00
#[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"]
)
}
}