Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fudge UTF-16 file/NFG tests.
So we can run the passing UTF-8 ones in "make spectest". The UTF-16
ones actually run into writing a buf16 to a file being NYI!
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent 907e841 commit ea19778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S15-nfg/from-file.t
Expand Up @@ -26,13 +26,15 @@ my $tmpfile = "temp-test" ~ nonce();
is $s.chars, 3, 'Reading UTF-8 file as NFG (a few graphemes)';
}

#?rakudo skip 'writing utf16 NYI'
{
# UTF-16 of codepoints 0044 0307 0323
spurt-bin $tmpfile, buf16.new(68, 775, 803);
my $s = slurp $tmpfile, enc => 'utf-16';
is $s.chars, 1, 'Reading UTF-16 file as NFG (one grapheme)';
}

#?rakudo skip 'writing utf16 NYI'
{
# UTF-16 of codepoints 0044 0307 0323 0044 0307 0044 0323
spurt-bin $tmpfile, buf16.new(68, 775, 803, 68, 775, 68, 803);
Expand Down

0 comments on commit ea19778

Please sign in to comment.