summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-03 15:13:30 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-03 15:13:30 +0200
commiteb8c71d063e3b45855b8454e1e75c45ab1e0c188 (patch)
tree141bde45bcc5cdbdc8afdd42a051a4cdf7225715
parent7f415f75038f101f26fc6ae8430be73bf0a6ffc9 (diff)
downloadzetacomponents-graph-eb8c71d063e3b45855b8454e1e75c45ab1e0c188.zip
zetacomponents-graph-eb8c71d063e3b45855b8454e1e75c45ab1e0c188.tar.gz
avoid float precision issue
-rw-r--r--tests/dataset_average_test.php2
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.');
}
}
OpenPOWER on IntegriCloud