Skip to content

Commit

Permalink
Merge pull request #325 from JJ/master
Browse files Browse the repository at this point in the history
Adds test for ignoring trailing whitespace
  • Loading branch information
AlexDaniel committed Jun 2, 2018
2 parents fabcd4c + 95e6c9e commit 37d2f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/Unicodable.p6
Expand Up @@ -31,7 +31,7 @@ constant $LIMIT = 5_000;
constant $PREVIEW-LIMIT = 50;

method help($msg) {
Just type any unicode character or part of a character name. Alternatively, you can also provide a code snippet.
Just type any Unicode character or part of a character name. Alternatively, you can also provide a code snippet.
}

multi method irc-to-me($msg) {
Expand Down
7 changes: 6 additions & 1 deletion t/unicodable.t
Expand Up @@ -9,7 +9,7 @@ use Testable;

my $t = Testable.new: bot => Unicodable;

$t.common-tests: help => Just type any unicode character or part of a character name.
$t.common-tests: help => Just type any Unicode character or part of a character name.
~ Alternatively, you can also provide a code snippet.;

$t.shortcut-tests: <u: u6: uni: uni6: propdump: propdump, unidump: unidump,>,
Expand Down Expand Up @@ -218,6 +218,11 @@ $t.test(:31timeout, ‘timeout’,
u: { sleep 1 },
{$t.our-nick}, «timed out after 30 seconds» «exit signal = SIGHUP (1)»);

# Trailing whitespace
$t.test("Trailing whitespace is fixed",
'u: GREEK SMALL THETA ',
"{$t.our-nick}, U+03B8 GREEK SMALL LETTER THETA [Ll] (θ)");

# Extra tests

$t.test(last basic query, just in case,
Expand Down

0 comments on commit 37d2f56

Please sign in to comment.