mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 12:36:32 +00:00
One More Test
This commit is contained in:
@@ -62,6 +62,7 @@ class BestFitTest extends TestCase
|
||||
$equation = $result->getEquation();
|
||||
$match = preg_match('/^Y = 0[.]1705\d+ [*] X\^1[.]2207\d+$/', $equation);
|
||||
self::assertSame(1, $match, $equation);
|
||||
self::assertEqualsWithDelta(0.1705, $result->getIntersect(4), self::LBF_PRECISION);
|
||||
|
||||
$type = Trend::TREND_BEST_FIT_NO_POLY;
|
||||
$result = Trend::calculate($type, $yValues, $xValues);
|
||||
|
||||
Reference in New Issue
Block a user