Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refudge encode.t for rakudo
  • Loading branch information
moritz committed Nov 8, 2011
1 parent 633e3c3 commit 48af882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion S32-io/chdir.t
Expand Up @@ -5,7 +5,7 @@ use Test;

plan 10;

dies_ok { chdir() }, 'Cannot call chdir without an argument';
eval_dies_ok ' chdir() ', 'Cannot call chdir without an argument';

### Although you can use Unix style folder separator / to set folders, what's returned
### is in the native style, such as \ for windows
Expand Down
4 changes: 2 additions & 2 deletions S32-str/encode.t
Expand Up @@ -16,15 +16,15 @@ is_deeply 'abc'.encode()[1, 2], (98, 99), 'can slice-index a Buf';

# verified with Perl 5:
# perl -CS -Mutf8 -MUnicode::Normalize -e 'print NFD("ä")' | hexdump -C
#?rakudo todo 'We do not handle NDF yet'
#?rakudo skip 'We do not handle NDF yet'
ok ('ä'.encode('UTF-8', 'D') eqv Buf.new(:16<61>, :16<cc>, :16<88>)),
'encoding to UTF-8, with NFD';

ok Buf.new(195, 182).decode ~~ Str, '.decode returns a Str';
is Buf.new(195, 182).decode, 'ö', 'decoding a Buf with UTF-8';
#?rakudo skip 'Not handling non-UTF-8 yet'
is Buf.new(246).decode('ISO-8859-1'), 'ö', 'decoding a Buf with Latin-1';

#?rakudo todo 'stringy'
ok Buf ~~ Stringy, 'Buf does Stringy';
ok Buf ~~ Positional, 'Buf does Positional';

Expand Down

0 comments on commit 48af882

Please sign in to comment.