mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-04 10:38:19 +01:00
Tests/BigInteger: make sure that zero is represented uniformly
This commit is contained in:
parent
e9bff8a4de
commit
d4b0e00d14
@ -419,4 +419,14 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
|
||||
$prime = $class::randomPrime(128);
|
||||
$this->assertSame(128, $prime->getLength());
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github1260
|
||||
*/
|
||||
public function testZeros()
|
||||
{
|
||||
$a = $this->getInstance();
|
||||
$b = $this->getInstance('00', 16);
|
||||
$this->assertTrue($a->equals($b));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user