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

Commit

Permalink
Fixed the last failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
castarco committed Apr 1, 2015
1 parent f082b00 commit 4159b34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/InfiniteDecimal/InfiniteDecimalPowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ public function testNegativeInfinitePositiveFinitePower()
$this->assertTrue($nInf->pow(Decimal::fromInteger(4))->equals($pInf));
}

/**
* @expectedException \DomainException
* @expectedExceptionMessage Negative infinite elevated to infinite is undefined.
*/
public function testNegativeInfinitePositiveInfinitePower()
{
$this->assertTrue(false);
InfiniteDecimal::getNegativeInfinite()->pow(InfiniteDecimal::getPositiveInfinite());
}

public function testNegativeInfiniteNegativePower()
Expand Down

0 comments on commit 4159b34

Please sign in to comment.