Skip to content

Commit

Permalink
Remove prime test for Lua and Cppia
Browse files Browse the repository at this point in the history
  • Loading branch information
flashultra committed Dec 20, 2024
1 parent 1fd473b commit 3696602
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/src/unit/TestBigInt.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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
Expand All @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 3696602

Please sign in to comment.