You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
474 B

use profanity_filter::*;
fn main() {
let m0 = Message::new("hello there".to_string(), "toby".to_string());
println!("{:?}", check_ms(&m0));
let m1 = Message::new("".to_string(), "toby".to_string());
println!("{:?}", check_ms(&m1));
let m2 = Message::new("you are stupid".to_string(), "toby".to_string());
println!("{:?}", check_ms(&m2));
let m3 = Message::new("stupid".to_string(), "toby".to_string());
println!("{:?}", check_ms(&m3));
}