Small Difference Avoided

This commit is contained in:
devansh bawari 2021-09-16 14:55:19 +05:30
parent c16586caf4
commit 88399bee64
1 changed files with 6 additions and 0 deletions

View File

@ -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]);
}
}