diff options
| author | acdenisSK <[email protected]> | 2018-07-02 18:49:48 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-07-02 19:03:26 +0200 |
| commit | ccd250649665b1726b0ca852b2375c113da6ed57 (patch) | |
| tree | 1dda99996ac6095152b89763782fa40c8cc520de /tests/test_utils.rs | |
| parent | Simplify utils::is_nsfw (diff) | |
| download | serenity-ccd250649665b1726b0ca852b2375c113da6ed57.tar.xz serenity-ccd250649665b1726b0ca852b2375c113da6ed57.zip | |
properly fix the is_nsfw check this time
Diffstat (limited to 'tests/test_utils.rs')
| -rw-r--r-- | tests/test_utils.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_utils.rs b/tests/test_utils.rs index 99308e4..d5dac6d 100644 --- a/tests/test_utils.rs +++ b/tests/test_utils.rs @@ -9,6 +9,7 @@ fn test_is_nsfw() { assert!(!is_nsfw("general"));
assert!(is_nsfw("nsfw"));
assert!(is_nsfw("nsfw-test"));
- assert!(is_nsfw("nsfw-"));
+ assert!(!is_nsfw("nsfw-"));
assert!(!is_nsfw("général"));
-}
\ No newline at end of file + assert!(is_nsfw("nsfw-général"));
+}
|