diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-03 15:13:30 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-03 15:13:30 +0200 |
commit | eb8c71d063e3b45855b8454e1e75c45ab1e0c188 (patch) | |
tree | 141bde45bcc5cdbdc8afdd42a051a4cdf7225715 /tests/dataset_average_test.php | |
parent | 7f415f75038f101f26fc6ae8430be73bf0a6ffc9 (diff) | |
download | zetacomponents-graph-eb8c71d063e3b45855b8454e1e75c45ab1e0c188.zip zetacomponents-graph-eb8c71d063e3b45855b8454e1e75c45ab1e0c188.tar.gz |
avoid float precision issue
Diffstat (limited to 'tests/dataset_average_test.php')
-rw-r--r-- | tests/dataset_average_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dataset_average_test.php b/tests/dataset_average_test.php index ee5fc4e..23f209b 100644 --- a/tests/dataset_average_test.php +++ b/tests/dataset_average_test.php @@ -334,7 +334,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase foreach ( $averageDataSet as $key => $value ) { - $this->assertEquals( (string) ( $start += $stepSize ), $key, 'Wrong step.', .01 ); + $this->assertEquals( (string) ( round($start += $stepSize,12) ), $key, 'Wrong step.'); } } |