Last active
August 29, 2015 14:21
-
-
Save rjbs/7aa7adfc92c68cb6217a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
throws-like( | |
sub { my $zscii = $z.zchars-to-zscii( $dict-ryche ); }, | |
X::AdHoc, | |
message => /terminated early/, | |
"we can't normally decode a word terminated mid-sequence", | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok 1 - code dies | |
ok 2 - right exception type (X::AdHoc) | |
not ok 3 - .message matches | |
# Failed test '.message matches ' | |
# at src/gen/m-CORE.setting line 10007 | |
Code object coerced to string (please use .gist or .perl to do that) in block at lib/Test.pm:453 | |
# Expected: | |
# Got: ten-bit ZSCII encoding segment terminated early | |
# Looks like you failed 1 tests of 3 | |
not ok 9 - we can't normally decode a word terminated mid-sequence |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment