Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function testPositiveNegativeDecimalAdd() |
||
38 | { |
||
39 | $n1 = Decimal::fromString('3.45'); |
||
40 | $n2 = Decimal::fromString('-7.67'); |
||
41 | |||
42 | $this->assertTrue($n1->add($n2)->equals(Decimal::fromString('-4.22'))); |
||
43 | $this->assertTrue($n2->add($n1)->equals(Decimal::fromString('-4.22'))); |
||
44 | } |
||
45 | } |
||
46 |