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:
parent
9e31808f61
commit
e9d99a6683
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user