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