File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Test nqp::op pseudo-functions.
4
4
5
- plan (239 );
5
+ plan (242 );
6
6
7
7
ok ( nqp ::add_i(5 ,2 ) == 7 , ' nqp::add_i' );
8
8
ok ( nqp ::sub_i(5 ,2 ) == 3 , ' nqp::sub_i' );
@@ -373,3 +373,8 @@ my $a2 := nqp::rand_n(4);
373
373
my $ b2 := nqp ::rand_n(4 );
374
374
ok ($ a1 == $ a2 , " after calling srand the first generated number is the same" );
375
375
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" );
You can’t perform that action at this time.
0 commit comments