1
0
mirror of https://github.com/danog/tgseclib.git synced 2025-01-22 14:01:20 +01:00

Tests/BigInteger: add unit test for 0 loaded as base-10

This commit is contained in:
terrafrost 2019-05-26 11:14:58 -05:00
parent 9e31808f61
commit e9d99a6683

View File

@ -406,4 +406,10 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
$temp = $this->getInstance(48);
$this->assertSame($temp->toHex(true), '30');
}
public function testZeroBase10()
{
$temp = $this->getInstance('00');
$this->assertSame($temp->toString(), '0');
}
}