summaryrefslogtreecommitdiffstats
path: root/tests/dataset_average_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-07 09:53:03 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-07 09:53:03 +0000
commit81d3bce1309bd1c4a6fbefe0c51f95d10511cd15 (patch)
tree20dbeff2f9fadb89f68bdeec3b5ca921068ebb9b /tests/dataset_average_test.php
parentbf0f2e15fa017a5bbea6dce8517a79063fc8b325 (diff)
downloadzetacomponents-graph-81d3bce1309bd1c4a6fbefe0c51f95d10511cd15.zip
zetacomponents-graph-81d3bce1309bd1c4a6fbefe0c51f95d10511cd15.tar.gz
- Added test for constructor parameter
- Fixed documentation
Diffstat (limited to 'tests/dataset_average_test.php')
-rw-r--r--tests/dataset_average_test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/dataset_average_test.php b/tests/dataset_average_test.php
index 1d67f8c..d0c05e9 100644
--- a/tests/dataset_average_test.php
+++ b/tests/dataset_average_test.php
@@ -139,6 +139,19 @@ class ezcGraphDataSetAverageTest extends ezcTestCase
);
}
+ public function testCreateDatasetFromDatasetHighOrderConstructorParameter()
+ {
+ $arrayDataSet = new ezcGraphArrayDataSet( array( -1 => 2, 1 => 2, 3 => 10 ) );
+
+ $averageDataSet = new ezcGraphDataSetAveragePolynom( $arrayDataSet, 3 );
+ $polynom = $averageDataSet->getPolynom();
+
+ $this->assertEquals(
+ 'x^2 + 1.00',
+ $polynom->__toString()
+ );
+ }
+
public function testIterateOverAverageDataset()
{
$arrayDataSet = new ezcGraphArrayDataSet( array( -1 => 2, 1 => 2, 3 => 10 ) );
OpenPOWER on IntegriCloud