diff --git a/bin/Unicodable.p6 b/bin/Unicodable.p6 index 83429f7..c9a8872 100755 --- a/bin/Unicodable.p6 +++ b/bin/Unicodable.p6 @@ -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) { diff --git a/t/unicodable.t b/t/unicodable.t index aed180e..a5397b5 100755 --- a/t/unicodable.t +++ b/t/unicodable.t @@ -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: , @@ -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’,