diff options
| author | Zeyla Hellyer <[email protected]> | 2017-08-18 17:49:57 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-08-18 17:53:13 -0700 |
| commit | 9dc04164b4f72a86e06a18d49292b04c7ccc964a (patch) | |
| tree | f7b39dc97f9d3392c9710ce50666ea109fb916c6 /tests | |
| parent | travis: simplify caching config (diff) | |
| download | serenity-9dc04164b4f72a86e06a18d49292b04c7ccc964a.tar.xz serenity-9dc04164b4f72a86e06a18d49292b04c7ccc964a.zip | |
Clippy lints
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_colour.rs | 1 | ||||
| -rw-r--r-- | tests/test_create_embed.rs | 1 | ||||
| -rw-r--r-- | tests/test_parsers.rs | 10 |
3 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_colour.rs b/tests/test_colour.rs index 61aa034..c26bf23 100644 --- a/tests/test_colour.rs +++ b/tests/test_colour.rs @@ -1,3 +1,4 @@ +#![allow(unreadable_literal)] #![cfg(feature = "utils")] extern crate serenity; diff --git a/tests/test_create_embed.rs b/tests/test_create_embed.rs index 1ef39a9..3ef4e50 100644 --- a/tests/test_create_embed.rs +++ b/tests/test_create_embed.rs @@ -1,3 +1,4 @@ +#![allow(unreadable_literal)] #![cfg(feature = "utils")] #[macro_use] diff --git a/tests/test_parsers.rs b/tests/test_parsers.rs index e9d3d39..eddad53 100644 --- a/tests/test_parsers.rs +++ b/tests/test_parsers.rs @@ -13,25 +13,25 @@ fn invite_parser() { #[test] fn username_parser() { - assert_eq!(parse_username("<@12345>").unwrap(), 12345); - assert_eq!(parse_username("<@!12345>").unwrap(), 12345); + assert_eq!(parse_username("<@12345>").unwrap(), 12_345); + assert_eq!(parse_username("<@!12345>").unwrap(), 12_345); } #[test] fn role_parser() { - assert_eq!(parse_role("<@&12345>").unwrap(), 12345); + assert_eq!(parse_role("<@&12345>").unwrap(), 12_345); } #[test] fn channel_parser() { - assert_eq!(parse_channel("<#12345>").unwrap(), 12345); + assert_eq!(parse_channel("<#12345>").unwrap(), 12_345); } #[test] fn emoji_parser() { let emoji = parse_emoji("<:name:12345>").unwrap(); assert_eq!(emoji.name, "name"); - assert_eq!(emoji.id, 12345); + assert_eq!(emoji.id, 12_345); } #[test] |