Merge pull request #5156 from devansh-webkul/master
Very Small Difference Avoided In Test Case
This commit is contained in:
commit
e4b5a1745d
|
|
@ -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