Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testIntegerSqrt() |
||
11 | { |
||
12 | $this->assertTrue(Decimal::fromInteger(0)->sqrt()->equals(Decimal::fromInteger(0))); |
||
13 | $this->assertTrue(Decimal::fromInteger(1)->sqrt()->equals(Decimal::fromInteger(1))); |
||
14 | $this->assertTrue(Decimal::fromInteger(4)->sqrt()->equals(Decimal::fromInteger(2))); |
||
15 | $this->assertTrue(Decimal::fromInteger(9)->sqrt()->equals(Decimal::fromInteger(3))); |
||
16 | $this->assertTrue(Decimal::fromInteger(16)->sqrt()->equals(Decimal::fromInteger(4))); |
||
17 | $this->assertTrue(Decimal::fromInteger(25)->sqrt()->equals(Decimal::fromInteger(5))); |
||
18 | } |
||
19 | |||
35 |