()
| 104 | } |
| 105 | |
| 106 | async fn censor_profane_words() { |
| 107 | let content = "This is a shitty sentence".to_string(); |
| 108 | let censored_content = check_profanity(content).await; |
| 109 | assert_eq!(censored_content.unwrap(), "this is a ****** sentence"); |
| 110 | } |
| 111 | |
| 112 | async fn no_profane_words() { |
| 113 | let content = "this is a sentence".to_string(); |
no test coverage detected