mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 03:27:31 +00:00
Tests/BigInteger: GMP engine didn't always return 1 or -1
This commit is contained in:
parent
9c67616f1e
commit
ade48c2cb1
@ -185,6 +185,9 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
|
|||||||
// c < d
|
// c < d
|
||||||
$this->assertLessThan(0, $c->compare($d));
|
$this->assertLessThan(0, $c->compare($d));
|
||||||
$this->assertGreaterThan(0, $d->compare($c));
|
$this->assertGreaterThan(0, $d->compare($c));
|
||||||
|
|
||||||
|
$this->assertSame(-1, $this->getInstance(-999)->compare($this->getInstance(370)));
|
||||||
|
$this->assertSame(1, $this->getInstance(999)->compare($this->getInstance(-700)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testBitwiseAND()
|
public function testBitwiseAND()
|
||||||
|
Loading…
Reference in New Issue
Block a user