summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-07-04 11:17:47 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-07-04 11:17:47 +0000
commit762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740 (patch)
tree1db297521aba69b58f2a1f0a4f2bd25db8e6beb0
parente6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689 (diff)
downloadzetacomponents-graph-762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740.zip
zetacomponents-graph-762f3f349e6ff132aa4e1cbf87a6a9dd26ce6740.tar.gz
- Added delta values to all float value comparisions
-rw-r--r--tests/numeric_axis_test.php30
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
);
}
OpenPOWER on IntegriCloud