Skip to content

Commit 3e96236

Browse files
committed
Test nqp::bitneg_i.
1 parent e76a1ac commit 3e96236

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/nqp/59-nqpop.t

Lines changed: 3 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(201);
5+
plan(202);
66

77
ok( nqp::add_i(5,2) == 7, 'nqp::add_i');
88
ok( nqp::sub_i(5,2) == 3, 'nqp::sub_i');
@@ -22,6 +22,8 @@ ok(nqp::bitand_i(0xdead, 0xbeef) == 0x9ead, 'nqp::bitand_i');
2222
ok(nqp::bitor_i(0xdead, 0xbeef) == 0xfeef, 'nqp::bitor_i');
2323
ok(nqp::bitxor_i(0xdead, 0xbeef) == 0x6042, 'nqp::bitxor_i');
2424

25+
ok(nqp::bitand_i(nqp::bitneg_i(0xdead), 0xffff) == 0x2152, 'nqp::bitneg_i');
26+
2527
ok( nqp::add_n(5,2) == 7, 'nqp::add_n');
2628
ok( nqp::sub_n(5,2) == 3, 'nqp::sub_n');
2729
ok( nqp::mul_n(5,2) == 10, 'nqp::mul_n');

0 commit comments

Comments
 (0)