Tests/BigInteger: GMP engine didn't always return 1 or -1

This commit is contained in:
terrafrost 2019-05-24 08:25:52 -05:00
parent b09bc1883e
commit c839297065

View File

@ -178,6 +178,9 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
// c < d
$this->assertLessThan(0, $c->compare($d));
$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()