Skip to content

Commit 1b6ed8e

Browse files
committed
Merge remote-tracking branch 'origin/AC-8063' into AC-8092
2 parents 093a1b7 + 5392e04 commit 1b6ed8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/internal/Magento/Framework/Math/Test/Unit/DivisionTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@
1212

1313
class DivisionTest extends TestCase
1414
{
15+
/**
16+
* @var float
17+
*/
18+
private const EPSILON = 0.0000000001;
19+
1520
/**
1621
* @dataProvider getExactDivisionDataProvider
1722
*/
1823
public function testGetExactDivision($dividend, $divisor, $expected)
1924
{
2025
$mathDivision = new Division();
2126
$remainder = $mathDivision->getExactDivision($dividend, $divisor);
22-
$this->assertEquals($expected, $remainder);
27+
$this->assertEqualsWithDelta($expected, $remainder, self::EPSILON);
2328
}
2429

2530
/**

0 commit comments

Comments
 (0)