Skip to content

Commit 1df9595

Browse files
committed
Test nqp::codes with a code point bigger than an UTF16 code unit
1 parent 4ae8f49 commit 1df9595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/nqp/059-nqpop.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Test nqp::op pseudo-functions.
44

5-
plan(346);
5+
plan(347);
66

77
ok( nqp::add_i(5,2) == 7, 'nqp::add_i');
88
ok( nqp::sub_i(5,2) == 3, 'nqp::sub_i');
@@ -588,3 +588,4 @@ is(
588588
'0,1,2,3,a,b,c,5,6,7,8,9', 'nqp::splice test');
589589

590590
is(nqp::codes('hello'), 5, 'nqp::codes with ascii');
591+
is(nqp::codes(nqp::chr(0x10426) ~ nqp::chr(0x10427)), 2, 'nqp::codes with chars bigger than a single code unit');

0 commit comments

Comments
 (0)