Skip to content

Commit

Permalink
Fixed testsuite with sebastian/comparator release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosomb committed Sep 26, 2022
1 parent 5ca242f commit 6e49c60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/Classes/Tax/TaxCalculatorCoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ public function testGetTotalRateBug()

$totalRate = $tax_calculator->getTotalRate();

$this->assertEquals(27.233, $totalRate);
$this->assertEquals(27.232999999999997, $totalRate);
}
}
2 changes: 1 addition & 1 deletion tests/Unit/Classes/ToolsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function providerSpreadAmount(): array
'a',
],
[
[['a' => 7.69], ['a' => 4.09], ['a' => 1.8]],
[['a' => 7.6899999999999995], ['a' => 4.09], ['a' => 1.7999999999999998]],
-0.32, 2,
[['a' => 7.8], ['a' => 4.2], ['a' => 1.9]],
'a',
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Core/Cart/AmountImmutableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testAdd(): void
$this->assertEquals(4.6, $amount1->getTaxIncluded());
$this->assertEquals(7.2, $amount1->getTaxExcluded());

$this->assertEquals(6.9, $amount2->getTaxIncluded());
$this->assertEquals(6.8999999999999995, $amount2->getTaxIncluded());
$this->assertEquals(10.7, $amount2->getTaxExcluded());
}

Expand Down

0 comments on commit 6e49c60

Please sign in to comment.