From 50d6c8aafd00398c5bf118cd373d90aa1934a8b0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 26 May 2019 15:21:27 -0500 Subject: [PATCH] Tests/BigInteger: test for new BigInteger('-0') --- tests/Unit/Math/BigInteger/TestCase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php index b0fab278..f8697e4e 100644 --- a/tests/Unit/Math/BigInteger/TestCase.php +++ b/tests/Unit/Math/BigInteger/TestCase.php @@ -465,5 +465,8 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase { $temp = $this->getInstance('00'); $this->assertSame($temp->toString(), '0'); + + $temp = $this->getInstance('-0'); + $this->assertSame($temp->toString(), '0'); } }