21 lines
462 B
Rust
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"]
|
||
|
)
|
||
|
}
|
||
|
}
|