Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
import bigint bool_I tests from moarvm/nqp-cc
  • Loading branch information
moritz committed Oct 13, 2013
1 parent 0cde6db commit d3790e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/nqp/60-bigint.t
@@ -1,7 +1,7 @@
#! nqp
use nqpmo;

plan(45);
plan(47);

my $knowhow := nqp::knowhow();
my $bi_type := $knowhow.new_type(:name('TestBigInt'), :repr('P6bigint'));
Expand Down Expand Up @@ -121,3 +121,6 @@ ok(nqp::isprime_I(box(17), 1) == 1, 'is 17 prime');

ok(nqp::iseq_I(nqp::gcd_I(box(18), box(12), $bi_type), box(6)), 'nqp::gcd_I');
ok(nqp::iseq_I(nqp::lcm_I(box(18), box(12), $bi_type), box(36)), 'nqp::lcm_I');

ok(nqp::bool_I(box(42)), 'bool_I(42)');
ok(!nqp::bool_I(box(0)), 'bool_I(0)');

0 comments on commit d3790e8

Please sign in to comment.