Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 4159b34

Browse files
committed
Fixed the last failing test
1 parent f082b00 commit 4159b34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/InfiniteDecimal/InfiniteDecimalPowTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ public function testNegativeInfinitePositiveFinitePower()
4545
$this->assertTrue($nInf->pow(Decimal::fromInteger(4))->equals($pInf));
4646
}
4747

48+
/**
49+
* @expectedException \DomainException
50+
* @expectedExceptionMessage Negative infinite elevated to infinite is undefined.
51+
*/
4852
public function testNegativeInfinitePositiveInfinitePower()
4953
{
50-
$this->assertTrue(false);
54+
InfiniteDecimal::getNegativeInfinite()->pow(InfiniteDecimal::getPositiveInfinite());
5155
}
5256

5357
public function testNegativeInfiniteNegativePower()

0 commit comments

Comments
 (0)