Skip to content

Commit

Permalink
Merge pull request #403 from dogbert17/test-rt-12851x
Browse files Browse the repository at this point in the history
Test rt 12851x
  • Loading branch information
lizmat committed Mar 17, 2018
2 parents 154a22c + 78b89c9 commit d0d4609
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S32-str/utf8-c8.t
Expand Up @@ -7,7 +7,7 @@ use Test::Util;
# 8-bit octet stream given to us by OSes that don't promise anything about
# the character encoding of filenames and so forth.

plan 63;
plan 66;

{
my $test-str;
Expand Down Expand Up @@ -220,3 +220,12 @@ if $*DISTRO.is-win {
ok (Buf.new(255).decode(<utf8-c8>) ~ 'L' ~ Buf.new(255).decode(<utf8-c8>)) ~~ /L/, "Regex still matches when utf8-c8 graphemes are adjacent";
ok (Buf.new(255).decode(<utf8-c8>) ~ 'L' ) ~~ /L/, "Regex still matches when utf8-c8 graphemes are adjacent";
}
# RT #128511
{
is-deeply Blob[uint8].new(233).decode("utf8-c8").encode("utf8-c8"), Blob[uint8].new(233), 'utf8-c8 does not generate spurious NUL 1';
is-deeply Blob[uint8].new(233, 128).decode("utf8-c8").encode("utf8-c8"), Blob[uint8].new(233, 128), 'utf8-c8 does not generate spurious NUL 2';
}
# RT #128512
{
is-deeply Blob[uint8].new(101, 204, 129).decode("utf8-c8").encode("utf8-c8"), Blob[uint8].new(101, 204, 129), 'Non normalized NFC is not mangled by utf-c8';
}

0 comments on commit d0d4609

Please sign in to comment.