100-days-of-rust/Week-07/Day-46_Hot-Pics-Of-Danny-Devito/day46/tests/examples.rs

23 lines
482 B
Rust
Raw Normal View History

2024-09-09 07:09:36 +00:00
#[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!"
);
}
}