Skip to content

Commit 0bc35f4

Browse files
committed
Test nqp::bitand_s, nqp::bitor_s, nqp::bitxor_s.
1 parent 7d2b53b commit 0bc35f4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/nqp/59-nqpop.t

Lines changed: 6 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(239);
5+
plan(242);
66

77
ok( nqp::add_i(5,2) == 7, 'nqp::add_i');
88
ok( nqp::sub_i(5,2) == 3, 'nqp::sub_i');
@@ -373,3 +373,8 @@ my $a2 := nqp::rand_n(4);
373373
my $b2 := nqp::rand_n(4);
374374
ok($a1 == $a2, "after calling srand the first generated number is the same");
375375
ok($b1 == $b2, "after calling srand the second generated number is the same");
376+
377+
# TODO higher unicode values
378+
ok(nqp::bitand_s('blabla12$#@', '9$dfa23219') eq ' $`b` 12 !', "nqp::bitand_s");
379+
ok(nqp::bitor_s('blabla12$#@', '9$dfa23219') eq '{lefms325;@', "nqp::bitor_s");
380+
ok(nqp::bitxor_s(nqp::chr(1146) ~ nqp::chr(120), nqp::chr(1152)) eq nqp::chr(250) ~ nqp::chr(120), "nqp::bitxor_s");

0 commit comments

Comments
 (0)