1
0
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:
terrafrost 2018-04-03 20:19:14 -05:00
parent e9bff8a4de
commit d4b0e00d14

View File

@ -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));
}
}