| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 12 | public function testFiniteAbs() |
||
| 13 | { |
||
| 14 | $this->assertTrue(DecimalConstants::pi()->equals( |
||
| 15 | Decimal::fromString("3.14159265358979323846264338327950") |
||
| 16 | )); |
||
| 17 | |||
| 18 | $this->assertTrue(DecimalConstants::eulerMascheroni()->equals( |
||
| 19 | Decimal::fromString("0.57721566490153286060651209008240") |
||
| 20 | )); |
||
| 21 | |||
| 22 | $this->assertTrue(DecimalConstants::goldenRatio()->equals( |
||
| 23 | Decimal::fromString("1.61803398874989484820458683436564") |
||
| 24 | )); |
||
| 25 | |||
| 26 | $this->assertTrue(DecimalConstants::lightSpeed()->equals( |
||
| 27 | Decimal::fromInteger(299792458) |
||
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 63 |