mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-27 00:58:25 +00: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);
|
$temp = $this->getInstance(48);
|
||||||
$this->assertSame($temp->toHex(true), '30');
|
$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