diff --git a/tests/unit/src/unit/TestBigInt.hx b/tests/unit/src/unit/TestBigInt.hx index cf424e50116..ee32e03a4c5 100644 --- a/tests/unit/src/unit/TestBigInt.hx +++ b/tests/unit/src/unit/TestBigInt.hx @@ -2749,6 +2749,7 @@ class TestBigInt extends Test { public function testNextProbablePrime():Void { + #if (!lua && !cppia) var a:BigInt; a = "8329132432461"; eq("8329132432469",a.nextProbablePrime().toString()); @@ -2764,6 +2765,7 @@ class TestBigInt extends Test { eq("40870721",a.nextProbablePrime().toString()); a = 32747015; eq("32747023",a.nextProbablePrime().toString()); + #end } public function testBigIntRandom():Void @@ -2778,6 +2780,7 @@ class TestBigInt extends Test { public function testBigIntRandomPrime():Void { + #if (!lua && !cppia) var randomPrimeNumber:BigInt = BigInt.randomPrime(5,5); t(randomPrimeNumber.isProbablePrime(5)); randomPrimeNumber = BigInt.randomPrime(11,5); @@ -2792,6 +2795,7 @@ class TestBigInt extends Test { t(randomPrimeNumber.isProbablePrime(5)); randomPrimeNumber = BigInt.randomPrime(156,5); t(randomPrimeNumber.isProbablePrime(5)); + #end } public function testBigIntRandomInRange():Void