mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-29 10:08:27 +00:00
Tests/BigInteger: test for new BigInteger('-0')
This commit is contained in:
parent
1e3f1d3a38
commit
50d6c8aafd
@ -465,5 +465,8 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
|
|||||||
{
|
{
|
||||||
$temp = $this->getInstance('00');
|
$temp = $this->getInstance('00');
|
||||||
$this->assertSame($temp->toString(), '0');
|
$this->assertSame($temp->toString(), '0');
|
||||||
|
|
||||||
|
$temp = $this->getInstance('-0');
|
||||||
|
$this->assertSame($temp->toString(), '0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user