Test Case Difference Removed
This commit is contained in:
parent
ddeaf597ec
commit
05d32d71e9
|
|
@ -107,12 +107,7 @@ class TaxCest
|
||||||
foreach ($this->scenario['expectedTaxRates'] as $taxRate => $taxAmount) {
|
foreach ($this->scenario['expectedTaxRates'] as $taxRate => $taxAmount) {
|
||||||
$I->assertTrue(array_key_exists($taxRate, $result));
|
$I->assertTrue(array_key_exists($taxRate, $result));
|
||||||
|
|
||||||
$difference = abs($taxAmount - round($result[$taxRate], 2));
|
$I->assertEquals($taxAmount, $result[$taxRate]);
|
||||||
|
|
||||||
/* just checking the small difference */
|
|
||||||
if ($difference !== 0.01) {
|
|
||||||
$I->assertEquals($taxAmount, round($result[$taxRate], 2));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue