23 lines
482 B
Rust
23 lines
482 B
Rust
|
#[cfg(test)]
|
||
|
mod examples {
|
||
|
use day46::prevent_distractions;
|
||
|
|
||
|
#[test]
|
||
|
fn example1() {
|
||
|
assert_eq!(prevent_distractions("vines that butter my eggroll"), "NO!");
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn example2() {
|
||
|
assert_eq!(prevent_distractions("Hot pictures of Danny DeVito"), "NO!");
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn example3() {
|
||
|
assert_eq!(
|
||
|
prevent_distractions("How to ace BC Calculus in 5 Easy Steps"),
|
||
|
"Safe watching!"
|
||
|
);
|
||
|
}
|
||
|
}
|