diff options
| author | Illia <[email protected]> | 2016-12-09 23:30:30 +0200 |
|---|---|---|
| committer | zeyla <[email protected]> | 2016-12-09 13:30:30 -0800 |
| commit | 8f24aa391f6b8a9103a9c105138c7610288acb05 (patch) | |
| tree | 5af9a958502a49d64868c50ef976157c6b71adca /tests | |
| parent | Implement From<Embed> for CreateEmbed (diff) | |
| download | serenity-8f24aa391f6b8a9103a9c105138c7610288acb05.tar.xz serenity-8f24aa391f6b8a9103a9c105138c7610288acb05.zip | |
Command builder, quoted args, and multi-prefixes
Add a command builder, which can take arguments such as multiple checks,
quoted arguments, and multiple prefix support, as well as dynamic
prefixes per context.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_parsers.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_parsers.rs b/tests/test_parsers.rs index 479ac93..768c7c4 100644 --- a/tests/test_parsers.rs +++ b/tests/test_parsers.rs @@ -31,3 +31,9 @@ fn emoji_parser() { assert_eq!(emoji.name, "name"); assert_eq!(emoji.id, 12345); } + +#[test] +fn quote_parser() { + let parsed = parse_quotes("a \"b c\" d\"e f\" g"); + assert_eq!(parsed, ["a", "b c", "d", "e f", "g"]); +} |