summaryrefslogtreecommitdiffstats
path: root/tests/dataset_average_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-24 12:22:57 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-24 12:22:57 +0000
commit80e1738a8474b9761036b73a4cc0180e6cee080c (patch)
tree97748bfef9deed057c42504a9056f60fbd1a5757 /tests/dataset_average_test.php
parent937d04f2094624af45c0241bc75f3cbef4182c70 (diff)
downloadzetacomponents-graph-80e1738a8474b9761036b73a4cc0180e6cee080c.zip
zetacomponents-graph-80e1738a8474b9761036b73a4cc0180e6cee080c.tar.gz
- Fixed issue #9950: Improved ezcGraphPolynom::__toString method for more
exact output # Based on a patch by Matthew Carroll
Diffstat (limited to 'tests/dataset_average_test.php')
-rw-r--r--tests/dataset_average_test.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/dataset_average_test.php b/tests/dataset_average_test.php
index 5cea07f..6de8821 100644
--- a/tests/dataset_average_test.php
+++ b/tests/dataset_average_test.php
@@ -68,7 +68,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- 'x^2 + 1.00',
+ 'x^2 + 1',
$polynom->__toString()
);
}
@@ -90,7 +90,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- '0.00 * x^2 + -1.85 * x + 1044430783.35',
+ '8.21e-10 x^2 - 1.85 x + 1.04e+9',
$polynom->__toString()
);
}
@@ -109,7 +109,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- '1.00 * x^3 + -6.21 * x^2 + 13.04 * x + -11.69',
+ 'x^3 - 6.21 x^2 + 13.0 x - 11.7',
$polynom->__toString()
);
}
@@ -128,7 +128,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- 'x^3 + -0.21 * x^2 + 0.20 * x + -2.45',
+ 'x^3 - 2.10e-1 x^2 + 2.00e-1 x - 2.45',
$polynom->__toString()
);
}
@@ -143,7 +143,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- '2.00 * x + 2.67',
+ '2.00 x + 2.67',
$polynom->__toString()
);
}
@@ -158,7 +158,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- 'x^2 + 1.00',
+ 'x^2 + 1',
$polynom->__toString()
);
}
@@ -171,7 +171,7 @@ class ezcGraphDataSetAverageTest extends ezcGraphTestCase
$polynom = $averageDataSet->getPolynom();
$this->assertEquals(
- 'x^2 + 1.00',
+ 'x^2 + 1',
$polynom->__toString()
);
}
OpenPOWER on IntegriCloud