Skip to content

Commit

Permalink
Set delta for testing floats with precision
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker committed Mar 7, 2022
1 parent 719d01c commit 65978df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unitTests/classes/src/BaseTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function assertMatrixValues(Matrix $matrix, $rows, $columns, array $gr
self::assertEqualsWithDelta(
(float) $expectedValue,
(float) $matrixGrid[$row][$column],
1.0e-12,
1.0e-14,
"Invalid result at row {$row} and column {$column}"
);
}
Expand Down

0 comments on commit 65978df

Please sign in to comment.