Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pick example that really is 2 NFC codes.
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent e46e945 commit 8ebb19c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S02-types/unicode.t
Expand Up @@ -5,9 +5,9 @@ plan 16;

#L<S02/"Methods on Arrays"/".bytes, .codes or .graphs">

# LATIN CAPITAL LETTER A, COMBINING GRAVE ACCENT
my Str $u = "\x[0041,0300]";
is $u.codes, 2, 'combining À is two codes';
# LATIN CAPITAL LETTER C, COMBINING DOT BELOW
my Str $u = "\x[0043,0323]";
is $u.codes, 2, 'combining \x[0042,0323] is two codes';
#?rakudo skip 'graphs NYI'
is $u.graphs, 1, 'combining À is one graph';
is "foo\r\nbar".codes, 8, 'CRLF is 2 codes';
Expand Down

0 comments on commit 8ebb19c

Please sign in to comment.