mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 04:28:51 +00:00
Minor tweaks
This commit is contained in:
@@ -20,10 +20,12 @@ class BesselITest extends TestCase
|
||||
* @dataProvider providerBESSELI
|
||||
*
|
||||
* @param mixed $expectedResult
|
||||
* @param mixed $x
|
||||
* @param mixed $ord
|
||||
*/
|
||||
public function testBESSELI($expectedResult, ...$args): void
|
||||
public function testBESSELI($expectedResult, $x, $ord = null): void
|
||||
{
|
||||
$result = Engineering::BESSELI(...$args);
|
||||
$result = Engineering::BESSELI($x, $ord);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,10 +20,12 @@ class BesselJTest extends TestCase
|
||||
* @dataProvider providerBESSEJ
|
||||
*
|
||||
* @param mixed $expectedResult
|
||||
* @param mixed $x
|
||||
* @param mixed $ord
|
||||
*/
|
||||
public function testBESSELJ($expectedResult, ...$args): void
|
||||
public function testBESSELJ($expectedResult, $x, $ord = null): void
|
||||
{
|
||||
$result = Engineering::BESSELJ(...$args);
|
||||
$result = Engineering::BESSELJ($x, $ord);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,10 +20,12 @@ class BesselKTest extends TestCase
|
||||
* @dataProvider providerBESSELK
|
||||
*
|
||||
* @param mixed $expectedResult
|
||||
* @param mixed $x
|
||||
* @param mixed $ord
|
||||
*/
|
||||
public function testBESSELK($expectedResult, ...$args): void
|
||||
public function testBESSELK($expectedResult, $x, $ord = null): void
|
||||
{
|
||||
$result = Engineering::BESSELK(...$args);
|
||||
$result = Engineering::BESSELK($x, $ord);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,10 +20,12 @@ class BesselYTest extends TestCase
|
||||
* @dataProvider providerBESSELY
|
||||
*
|
||||
* @param mixed $expectedResult
|
||||
* @param mixed $x
|
||||
* @param mixed $ord
|
||||
*/
|
||||
public function testBESSELY($expectedResult, ...$args): void
|
||||
public function testBESSELY($expectedResult, $x, $ord = null): void
|
||||
{
|
||||
$result = Engineering::BESSELY(...$args);
|
||||
$result = Engineering::BESSELY($x, $ord);
|
||||
self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user