diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-07-04 11:17:47 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-07-04 11:17:47 +0000 |
commit | 762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740 (patch) | |
tree | 1db297521aba69b58f2a1f0a4f2bd25db8e6beb0 | |
parent | e6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689 (diff) | |
download | zetacomponents-graph-762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740.zip zetacomponents-graph-762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740.tar.gz |
- Added delta values to all float value comparisions
-rw-r--r-- | tests/numeric_axis_test.php | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/tests/numeric_axis_test.php b/tests/numeric_axis_test.php index e7f73e9..8658965 100644 --- a/tests/numeric_axis_test.php +++ b/tests/numeric_axis_test.php @@ -579,13 +579,15 @@ class ezcGraphNumericAxisTest extends ezcTestCase $this->assertEquals( 0, $chart->yAxis->min, - 'As value for: min; ' + 'As value for: min; ', + .001 ); $this->assertEquals( 13.53, $chart->yAxis->max, - 'As value for: max; ' + 'As value for: max; ', + .001 ); $this->assertEquals( @@ -615,25 +617,29 @@ class ezcGraphNumericAxisTest extends ezcTestCase $this->assertEquals( 0., $chart->yAxis->min, - 'As value for: min; ' + 'As value for: min; ', + .001 ); $this->assertEquals( 2000., $chart->yAxis->max, - 'As value for: max; ' + 'As value for: max; ', + .001 ); $this->assertEquals( 250., $chart->yAxis->majorStep, - 'As value for: majorStep; ' + 'As value for: majorStep; ', + .001 ); $this->assertEquals( 50., $chart->yAxis->minorStep, - 'As value for: minorStep; ' + 'As value for: minorStep; ', + .001 ); } @@ -649,25 +655,29 @@ class ezcGraphNumericAxisTest extends ezcTestCase $this->assertEquals( 1.175, $chart->yAxis->min, - 'As value for: min; ' + 'As value for: min; ', + .001 ); $this->assertEquals( 1.275, $chart->yAxis->max, - 'As value for: max; ' + 'As value for: max; ', + .001 ); $this->assertEquals( 0.025, $chart->yAxis->majorStep, - 'As value for: majorStep; ' + 'As value for: majorStep; ', + .001 ); $this->assertEquals( .005, $chart->yAxis->minorStep, - 'As value for: minorStep; ' + 'As value for: minorStep; ', + .001 ); } |