PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions/Statistical/NormSDist2Test.php
Mark Baker 57213deb64
Implementation of MS Excel's LOGNORM.DIST(), NORM.S.DIST(), F.DIST(), GAUSS() and GAMMA() functions (#1588)
* `GAUSS()` and `GAMMA()`, `NORM.S.DIST()`, `LOGNORM.DIST()` and `F.DIST()` function implementations, and further unit tests for a number of the statistical functions

Co-authored-by: Adrien Crivelli <adrien.crivelli@gmail.com>
2020-07-25 12:44:51 +02:00

26 lines
651 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
use PHPUnit\Framework\TestCase;
class NormSDist2Test extends TestCase
{
/**
* @dataProvider providerNORMSDIST2
*
* @param mixed $expectedResult
*/
public function testNORMSDIST2($expectedResult, ...$args): void
{
$result = Statistical::NORMSDIST2(...$args);
self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
}
public function providerNORMSDIST2(): array
{
return require 'tests/data/Calculation/Statistical/NORMSDIST2.php';
}
}