We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766908f commit 5392e04Copy full SHA for 5392e04
lib/internal/Magento/Framework/Math/Test/Unit/DivisionTest.php
@@ -12,14 +12,19 @@
12
13
class DivisionTest extends TestCase
14
{
15
+ /**
16
+ * @var float
17
+ */
18
+ private const EPSILON = 0.0000000001;
19
+
20
/**
21
* @dataProvider getExactDivisionDataProvider
22
*/
23
public function testGetExactDivision($dividend, $divisor, $expected)
24
25
$mathDivision = new Division();
26
$remainder = $mathDivision->getExactDivision($dividend, $divisor);
- $this->assertEquals($expected, $remainder);
27
+ $this->assertEqualsWithDelta($expected, $remainder, self::EPSILON);
28
}
29
30
0 commit comments