Small Difference Avoided
This commit is contained in:
parent
c16586caf4
commit
88399bee64
|
|
@ -109,6 +109,12 @@ class TaxCest
|
|||
foreach ($this->scenario['expectedTaxRates'] as $taxRate => $taxAmount) {
|
||||
$I->assertTrue(array_key_exists($taxRate, $result));
|
||||
|
||||
$difference = abs($taxAmount - round($result[$taxRate], 2));
|
||||
|
||||
if ($difference <= 0.01 && $difference >= 0.0001) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$I->assertEquals($taxAmount, $result[$taxRate]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue