diff --git a/tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php b/tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php index 003ef206..e69de29b 100644 --- a/tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/EngineeringTest.php @@ -1,1009 +0,0 @@ -complexAssert = new ComplexAssert(); - Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); - } - - public function tearDown() - { - $this->complexAssert = null; - } - - /** - * @dataProvider providerBESSELI - * - * @param mixed $expectedResult - */ - public function testBESSELI($expectedResult, ...$args) - { - $result = Engineering::BESSELI(...$args); - self::assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); - } - - public function providerBESSELI() - { - return require 'data/Calculation/Engineering/BESSELI.php'; - } - - /** - * @dataProvider providerBESSELJ - * - * @param mixed $expectedResult - */ - public function testBESSELJ($expectedResult, ...$args) - { - $result = Engineering::BESSELJ(...$args); - self::assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); - } - - public function providerBESSELJ() - { - return require 'data/Calculation/Engineering/BESSELJ.php'; - } - - /** - * @dataProvider providerBESSELK - * - * @param mixed $expectedResult - */ - public function testBESSELK($expectedResult, ...$args) - { - $result = Engineering::BESSELK(...$args); - self::assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); - } - - public function providerBESSELK() - { - return require 'data/Calculation/Engineering/BESSELK.php'; - } - - /** - * @dataProvider providerBESSELY - * - * @param mixed $expectedResult - */ - public function testBESSELY($expectedResult, ...$args) - { - $result = Engineering::BESSELY(...$args); - self::assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); - } - - public function providerBESSELY() - { - return require 'data/Calculation/Engineering/BESSELY.php'; - } - - /** - * @dataProvider providerCOMPLEX - * - * @param mixed $expectedResult - */ - public function testParseComplex() - { - [$real, $imaginary, $suffix] = [1.23e-4, 5.67e+8, 'j']; - - $result = Engineering::parseComplex('1.23e-4+5.67e+8j'); - $this->assertArrayHasKey('real', $result); - $this->assertEquals($real, $result['real']); - $this->assertArrayHasKey('imaginary', $result); - $this->assertEquals($imaginary, $result['imaginary']); - $this->assertArrayHasKey('suffix', $result); - $this->assertEquals($suffix, $result['suffix']); - } - - /** - * @dataProvider providerCOMPLEX - * - * @param mixed $expectedResult - */ - public function testCOMPLEX($expectedResult, ...$args) - { - $result = Engineering::COMPLEX(...$args); - self::assertEquals($expectedResult, $result); - } - - public function providerCOMPLEX() - { - return require 'data/Calculation/Engineering/COMPLEX.php'; - } - - /** - * @dataProvider providerIMAGINARY - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMAGINARY($expectedResult, $value) - { - $result = Engineering::IMAGINARY($value); - self::assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); - } - - public function providerIMAGINARY() - { - return require 'data/Calculation/Engineering/IMAGINARY.php'; - } - - /** - * @dataProvider providerIMREAL - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMREAL($expectedResult, $value) - { - $result = Engineering::IMREAL($value); - self::assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); - } - - public function providerIMREAL() - { - return require 'data/Calculation/Engineering/IMREAL.php'; - } - - /** - * @dataProvider providerIMABS - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMABS($expectedResult, $value) - { - $result = Engineering::IMABS($value); - self::assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); - } - - public function providerIMABS() - { - return require 'data/Calculation/Engineering/IMABS.php'; - } - - /** - * @dataProvider providerIMARGUMENT - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMARGUMENT($expectedResult, $value) - { - $result = Engineering::IMARGUMENT($value); - self::assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); - } - - public function providerIMARGUMENT() - { - return require 'data/Calculation/Engineering/IMARGUMENT.php'; - } - - /** - * @dataProvider providerIMCONJUGATE - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCONJUGATE($expectedResult, $value) - { - $result = Engineering::IMCONJUGATE($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCONJUGATE() - { - return require 'data/Calculation/Engineering/IMCONJUGATE.php'; - } - - /** - * @dataProvider providerIMCOS - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCOS($expectedResult, $value) - { - $result = Engineering::IMCOS($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCOS() - { - return require 'data/Calculation/Engineering/IMCOS.php'; - } - - /** - * @dataProvider providerIMCOSH - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCOSH($expectedResult, $value) - { - $result = Engineering::IMCOSH($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCOSH() - { - return require 'data/Calculation/Engineering/IMCOSH.php'; - } - - /** - * @dataProvider providerIMCOT - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCOT($expectedResult, $value) - { - $result = Engineering::IMCOT($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCOT() - { - return require 'data/Calculation/Engineering/IMCOT.php'; - } - - /** - * @dataProvider providerIMCSC - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCSC($expectedResult, $value) - { - $result = Engineering::IMCSC($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCSC() - { - return require 'data/Calculation/Engineering/IMCSC.php'; - } - - /** - * @dataProvider providerIMCSCH - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMCSCH($expectedResult, $value) - { - $result = Engineering::IMCSCH($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMCSCH() - { - return require 'data/Calculation/Engineering/IMCSCH.php'; - } - - /** - * @dataProvider providerIMSEC - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMSEC($expectedResult, $value) - { - $result = Engineering::IMSEC($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSEC() - { - return require 'data/Calculation/Engineering/IMSEC.php'; - } - - /** - * @dataProvider providerIMSECH - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMSECH($expectedResult, $value) - { - $result = Engineering::IMSECH($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSECH() - { - return require 'data/Calculation/Engineering/IMSECH.php'; - } - - /** - * @dataProvider providerIMDIV - * - * @param mixed $expectedResult - */ - public function testIMDIV($expectedResult, ...$args) - { - $result = Engineering::IMDIV(...$args); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMDIV() - { - return require 'data/Calculation/Engineering/IMDIV.php'; - } - - /** - * @dataProvider providerIMEXP - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMEXP($expectedResult, $value) - { - $result = Engineering::IMEXP($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMEXP() - { - return require 'data/Calculation/Engineering/IMEXP.php'; - } - - /** - * @dataProvider providerIMLN - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMLN($expectedResult, $value) - { - $result = Engineering::IMLN($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMLN() - { - return require 'data/Calculation/Engineering/IMLN.php'; - } - - /** - * @dataProvider providerIMLOG2 - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMLOG2($expectedResult, $value) - { - $result = Engineering::IMLOG2($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMLOG2() - { - return require 'data/Calculation/Engineering/IMLOG2.php'; - } - - /** - * @dataProvider providerIMLOG10 - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMLOG10($expectedResult, $value) - { - $result = Engineering::IMLOG10($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMLOG10() - { - return require 'data/Calculation/Engineering/IMLOG10.php'; - } - - /** - * @dataProvider providerIMPOWER - * - * @param mixed $expectedResult - */ - public function testIMPOWER($expectedResult, ...$args) - { - $result = Engineering::IMPOWER(...$args); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMPOWER() - { - return require 'data/Calculation/Engineering/IMPOWER.php'; - } - - /** - * @dataProvider providerIMPRODUCT - * - * @param mixed $expectedResult - */ - public function testIMPRODUCT($expectedResult, ...$args) - { - $result = Engineering::IMPRODUCT(...$args); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMPRODUCT() - { - return require 'data/Calculation/Engineering/IMPRODUCT.php'; - } - - /** - * @dataProvider providerIMSIN - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMSIN($expectedResult, $value) - { - $result = Engineering::IMSIN($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSIN() - { - return require 'data/Calculation/Engineering/IMSIN.php'; - } - - /** - * @dataProvider providerIMSINH - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMSINH($expectedResult, $value) - { - $result = Engineering::IMSINH($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSINH() - { - return require 'data/Calculation/Engineering/IMSINH.php'; - } - - /** - * @dataProvider providerIMTAN - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMTAN($expectedResult, $value) - { - $result = Engineering::IMTAN($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMTAN() - { - return require 'data/Calculation/Engineering/IMTAN.php'; - } - - /** - * @dataProvider providerIMSQRT - * - * @param mixed $expectedResult - * @param mixed $value - */ - public function testIMSQRT($expectedResult, $value) - { - $result = Engineering::IMSQRT($value); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSQRT() - { - return require 'data/Calculation/Engineering/IMSQRT.php'; - } - - /** - * @dataProvider providerIMSUB - * - * @param mixed $expectedResult - */ - public function testIMSUB($expectedResult, ...$args) - { - $result = Engineering::IMSUB(...$args); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSUB() - { - return require 'data/Calculation/Engineering/IMSUB.php'; - } - - /** - * @dataProvider providerIMSUM - * - * @param mixed $expectedResult - */ - public function testIMSUM($expectedResult, ...$args) - { - $result = Engineering::IMSUM(...$args); - self::assertTrue( - $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), - $this->complexAssert->getErrorMessage() - ); - } - - public function providerIMSUM() - { - return require 'data/Calculation/Engineering/IMSUM.php'; - } - - /** - * @dataProvider providerERF - * - * @param mixed $expectedResult - */ - public function testERF($expectedResult, ...$args) - { - $result = Engineering::ERF(...$args); - self::assertEquals($expectedResult, $result, '', self::ERF_PRECISION); - } - - public function providerERF() - { - return require 'data/Calculation/Engineering/ERF.php'; - } - - /** - * @dataProvider providerERFPRECISE - * - * @param mixed $expectedResult - */ - public function testERFPRECISE($expectedResult, ...$args) - { - $result = Engineering::ERFPRECISE(...$args); - self::assertEquals($expectedResult, $result, '', self::ERF_PRECISION); - } - - public function providerERFPRECISE() - { - return require 'data/Calculation/Engineering/ERFPRECISE.php'; - } - - /** - * @dataProvider providerERFC - * - * @param mixed $expectedResult - */ - public function testERFC($expectedResult, ...$args) - { - $result = Engineering::ERFC(...$args); - self::assertEquals($expectedResult, $result, '', self::ERF_PRECISION); - } - - public function providerERFC() - { - return require 'data/Calculation/Engineering/ERFC.php'; - } - - /** - * @dataProvider providerBIN2DEC - * - * @param mixed $expectedResult - */ - public function testBIN2DEC($expectedResult, ...$args) - { - $result = Engineering::BINTODEC(...$args); - self::assertEquals($expectedResult, $result); - } - - public function providerBIN2DEC() - { - return require 'data/Calculation/Engineering/BIN2DEC.php'; - } - - /** - * @dataProvider providerBIN2HEX - * - * @param mixed $expectedResult - */ - public function testBIN2HEX($expectedResult, ...$args) - { - $result = Engineering::BINTOHEX(...$args); - self::assertEquals($expectedResult, $result); - } - - public function providerBIN2HEX() - { - return require 'data/Calculation/Engineering/BIN2HEX.php'; - } - - /** - * @dataProvider providerBIN2OCT - * - * @param mixed $expectedResult - */ - public function testBIN2OCT($expectedResult, ...$args) - { - $result = Engineering::BINTOOCT(...$args); - self::assertEquals($expectedResult, $result); - } - - public function providerBIN2OCT() - { - return require 'data/Calculation/Engineering/BIN2OCT.php'; - } - - /** - * @dataProvider providerDEC2BIN - * - * @param mixed $expectedResult - */ - public function testDEC2BIN($expectedResult, ...$args) - { - $result = Engineering::DECTOBIN(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerDEC2BIN() - { - return require 'data/Calculation/Engineering/DEC2BIN.php'; - } - - /** - * @dataProvider providerDEC2HEX - * - * @param mixed $expectedResult - */ - public function testDEC2HEX($expectedResult, ...$args) - { - $result = Engineering::DECTOHEX(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerDEC2HEX() - { - return require 'data/Calculation/Engineering/DEC2HEX.php'; - } - - /** - * @dataProvider providerDEC2OCT - * - * @param mixed $expectedResult - */ - public function testDEC2OCT($expectedResult, ...$args) - { - $result = Engineering::DECTOOCT(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerDEC2OCT() - { - return require 'data/Calculation/Engineering/DEC2OCT.php'; - } - - /** - * @dataProvider providerHEX2BIN - * - * @param mixed $expectedResult - */ - public function testHEX2BIN($expectedResult, ...$args) - { - $result = Engineering::HEXTOBIN(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerHEX2BIN() - { - return require 'data/Calculation/Engineering/HEX2BIN.php'; - } - - /** - * @dataProvider providerHEX2DEC - * - * @param mixed $expectedResult - */ - public function testHEX2DEC($expectedResult, ...$args) - { - $result = Engineering::HEXTODEC(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerHEX2DEC() - { - return require 'data/Calculation/Engineering/HEX2DEC.php'; - } - - /** - * @dataProvider providerHEX2OCT - * - * @param mixed $expectedResult - */ - public function testHEX2OCT($expectedResult, ...$args) - { - $result = Engineering::HEXTOOCT(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerHEX2OCT() - { - return require 'data/Calculation/Engineering/HEX2OCT.php'; - } - - /** - * @dataProvider providerOCT2BIN - * - * @param mixed $expectedResult - */ - public function testOCT2BIN($expectedResult, ...$args) - { - $result = Engineering::OCTTOBIN(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerOCT2BIN() - { - return require 'data/Calculation/Engineering/OCT2BIN.php'; - } - - /** - * @dataProvider providerOCT2DEC - * - * @param mixed $expectedResult - */ - public function testOCT2DEC($expectedResult, ...$args) - { - $result = Engineering::OCTTODEC(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerOCT2DEC() - { - return require 'data/Calculation/Engineering/OCT2DEC.php'; - } - - /** - * @dataProvider providerOCT2HEX - * - * @param mixed $expectedResult - */ - public function testOCT2HEX($expectedResult, ...$args) - { - $result = Engineering::OCTTOHEX(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerOCT2HEX() - { - return require 'data/Calculation/Engineering/OCT2HEX.php'; - } - - /** - * @dataProvider providerBITAND - * - * @param mixed $expectedResult - * @param mixed[] $args - */ - public function testBITAND($expectedResult, array $args) - { - $result = Engineering::BITAND(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerBITAND() - { - return require 'data/Calculation/Engineering/BITAND.php'; - } - - /** - * @dataProvider providerBITOR - * - * @param mixed $expectedResult - * @param mixed[] $args - */ - public function testBITOR($expectedResult, array $args) - { - $result = Engineering::BITOR(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerBITOR() - { - return require 'data/Calculation/Engineering/BITOR.php'; - } - - /** - * @dataProvider providerBITXOR - * - * @param mixed $expectedResult - * @param mixed[] $args - */ - public function testBITXOR($expectedResult, array $args) - { - $result = Engineering::BITXOR(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerBITXOR() - { - return require 'data/Calculation/Engineering/BITXOR.php'; - } - - /** - * @dataProvider providerBITLSHIFT - * - * @param mixed $expectedResult - * @param mixed[] $args - */ - public function testBITLSHIFT($expectedResult, array $args) - { - $result = Engineering::BITLSHIFT(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerBITLSHIFT() - { - return require 'data/Calculation/Engineering/BITLSHIFT.php'; - } - - /** - * @dataProvider providerBITRSHIFT - * - * @param mixed $expectedResult - * @param mixed[] $args - */ - public function testBITRSHIFT($expectedResult, array $args) - { - $result = Engineering::BITRSHIFT(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerBITRSHIFT() - { - return require 'data/Calculation/Engineering/BITRSHIFT.php'; - } - - /** - * @dataProvider providerDELTA - * - * @param mixed $expectedResult - */ - public function testDELTA($expectedResult, ...$args) - { - $result = Engineering::DELTA(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerDELTA() - { - return require 'data/Calculation/Engineering/DELTA.php'; - } - - /** - * @dataProvider providerGESTEP - * - * @param mixed $expectedResult - */ - public function testGESTEP($expectedResult, ...$args) - { - $result = Engineering::GESTEP(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerGESTEP() - { - return require 'data/Calculation/Engineering/GESTEP.php'; - } - - public function testGetConversionGroups() - { - $result = Engineering::getConversionGroups(); - self::assertIsArray($result); - } - - public function testGetConversionGroupUnits() - { - $result = Engineering::getConversionGroupUnits(); - self::assertIsArray($result); - } - - public function testGetConversionGroupUnitDetails() - { - $result = Engineering::getConversionGroupUnitDetails(); - self::assertIsArray($result); - } - - public function testGetConversionMultipliers() - { - $result = Engineering::getConversionMultipliers(); - self::assertIsArray($result); - } - - /** - * @dataProvider providerCONVERTUOM - * - * @param mixed $expectedResult - */ - public function testCONVERTUOM($expectedResult, ...$args) - { - $result = Engineering::CONVERTUOM(...$args); - self::assertEquals($expectedResult, $result, ''); - } - - public function providerCONVERTUOM() - { - return require 'data/Calculation/Engineering/CONVERTUOM.php'; - } -} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DayTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DayTest.php index 48dd72c1..6bd5ba71 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DayTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/DayTest.php @@ -21,16 +21,16 @@ class DayTest extends TestCase * * @param mixed $expectedResultExcel * @param mixed $expectedResultOpenOffice - * @param $dateValue + * @param $dateTimeValue */ - public function testDAY($expectedResultExcel, $expectedResultOpenOffice, $dateValue) + public function testDAY($expectedResultExcel, $expectedResultOpenOffice, $dateTimeValue) { - $resultExcel = DateTime::DAYOFMONTH($dateValue); + $resultExcel = DateTime::DAYOFMONTH($dateTimeValue); $this->assertEquals($expectedResultExcel, $resultExcel, '', 1E-8); Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); - $resultOpenOffice = DateTime::DAYOFMONTH($dateValue); + $resultOpenOffice = DateTime::DAYOFMONTH($dateTimeValue); $this->assertEquals($expectedResultOpenOffice, $resultOpenOffice, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/HourTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/HourTest.php index 27a20f3a..a7a4d0fa 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/HourTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/HourTest.php @@ -20,10 +20,11 @@ class HourTest extends TestCase * @dataProvider providerHOUR * * @param mixed $expectedResult + * @param $dateTimeValue */ - public function testHOUR($expectedResult, ...$args) + public function testHOUR($expectedResult, $dateTimeValue) { - $result = DateTime::HOUROFDAY(...$args); + $result = DateTime::HOUROFDAY($dateTimeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MinuteTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MinuteTest.php index cc416358..c4327079 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MinuteTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MinuteTest.php @@ -20,10 +20,11 @@ class MinuteTest extends TestCase * @dataProvider providerMINUTE * * @param mixed $expectedResult + * @param $dateTimeValue */ - public function testMINUTE($expectedResult, ...$args) + public function testMINUTE($expectedResult, $dateTimeValue) { - $result = DateTime::MINUTE(...$args); + $result = DateTime::MINUTE($dateTimeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MonthTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MonthTest.php index f3dbd35e..2bec0557 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MonthTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/MonthTest.php @@ -20,10 +20,11 @@ class MonthTest extends TestCase * @dataProvider providerMONTH * * @param mixed $expectedResult + * @param $dateTimeValue */ - public function testMONTH($expectedResult, ...$args) + public function testMONTH($expectedResult, $dateTimeValue) { - $result = DateTime::MONTHOFYEAR(...$args); + $result = DateTime::MONTHOFYEAR($dateTimeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/SecondTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/SecondTest.php index e55f01ce..40418706 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/SecondTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/SecondTest.php @@ -20,10 +20,11 @@ class SecondTest extends TestCase * @dataProvider providerSECOND * * @param mixed $expectedResult + * @param $dateTimeValue */ - public function testSECOND($expectedResult, ...$args) + public function testSECOND($expectedResult, $dateTimeValue) { - $result = DateTime::SECOND(...$args); + $result = DateTime::SECOND($dateTimeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeValueTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeValueTest.php index 4fc09a2d..d1adfc62 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeValueTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/TimeValueTest.php @@ -20,10 +20,11 @@ class TimeValueTest extends TestCase * @dataProvider providerTIMEVALUE * * @param mixed $expectedResult + * @param $timeValue */ - public function testTIMEVALUE($expectedResult, ...$args) + public function testTIMEVALUE($expectedResult, $timeValue) { - $result = DateTime::TIMEVALUE(...$args); + $result = DateTime::TIMEVALUE($timeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/YearTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/YearTest.php index f0412739..8b59e0aa 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/YearTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/DateTime/YearTest.php @@ -20,10 +20,11 @@ class YearTest extends TestCase * @dataProvider providerYEAR * * @param mixed $expectedResult + * @param $dateTimeValue */ - public function testYEAR($expectedResult, ...$args) + public function testYEAR($expectedResult, $dateTimeValue) { - $result = DateTime::YEAR(...$args); + $result = DateTime::YEAR($dateTimeValue); $this->assertEquals($expectedResult, $result, '', 1E-8); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php new file mode 100644 index 00000000..adaddd6e --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); + } + + public function providerBESSELI() + { + return require 'data/Calculation/Engineering/BESSELI.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php new file mode 100644 index 00000000..4787fa1a --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); + } + + public function providerBESSEJ() + { + return require 'data/Calculation/Engineering/BESSELJ.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php new file mode 100644 index 00000000..865244af --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); + } + + public function providerBESSELK() + { + return require 'data/Calculation/Engineering/BESSELK.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php new file mode 100644 index 00000000..e79b9871 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::BESSEL_PRECISION); + } + + public function providerBESSELY() + { + return require 'data/Calculation/Engineering/BESSELY.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2DecTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2DecTest.php new file mode 100644 index 00000000..917493eb --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2DecTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerBIN2DEC() + { + return require 'data/Calculation/Engineering/BIN2DEC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2HexTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2HexTest.php new file mode 100644 index 00000000..1366a7a9 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2HexTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerBIN2HEX() + { + return require 'data/Calculation/Engineering/BIN2HEX.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2OctTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2OctTest.php new file mode 100644 index 00000000..acec8843 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Bin2OctTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerBIN2OCT() + { + return require 'data/Calculation/Engineering/BIN2OCT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitAndTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitAndTest.php new file mode 100644 index 00000000..7e2d6ae7 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitAndTest.php @@ -0,0 +1,32 @@ +assertEquals($expectedResult, $result); + } + + public function providerBITAND() + { + return require 'data/Calculation/Engineering/BITAND.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitLShiftTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitLShiftTest.php new file mode 100644 index 00000000..8ae9db68 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitLShiftTest.php @@ -0,0 +1,32 @@ +assertEquals($expectedResult, $result); + } + + public function providerBITLSHIFT() + { + return require 'data/Calculation/Engineering/BITLSHIFT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitOrTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitOrTest.php new file mode 100644 index 00000000..4719d1ba --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitOrTest.php @@ -0,0 +1,32 @@ +assertEquals($expectedResult, $result); + } + + public function providerBITOR() + { + return require 'data/Calculation/Engineering/BITOR.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitRShiftTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitRShiftTest.php new file mode 100644 index 00000000..07b6b542 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitRShiftTest.php @@ -0,0 +1,32 @@ +assertEquals($expectedResult, $result); + } + + public function providerBITRSHIFT() + { + return require 'data/Calculation/Engineering/BITRSHIFT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitXorTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitXorTest.php new file mode 100644 index 00000000..ca29c064 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BitXorTest.php @@ -0,0 +1,32 @@ +assertEquals($expectedResult, $result); + } + + public function providerBITXOR() + { + return require 'data/Calculation/Engineering/BITXOR.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ComplexTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ComplexTest.php new file mode 100644 index 00000000..d7686fb0 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ComplexTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerCOMPLEX() + { + return require 'data/Calculation/Engineering/COMPLEX.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ConvertUoMTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ConvertUoMTest.php new file mode 100644 index 00000000..f09479ad --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ConvertUoMTest.php @@ -0,0 +1,55 @@ +assertIsArray($result); + } + + public function testGetConversionGroupUnits() + { + $result = Engineering::getConversionGroupUnits(); + $this->assertIsArray($result); + } + + public function testGetConversionGroupUnitDetails() + { + $result = Engineering::getConversionGroupUnitDetails(); + $this->assertIsArray($result); + } + + public function testGetConversionMultipliers() + { + $result = Engineering::getConversionMultipliers(); + $this->assertIsArray($result); + } + + /** + * @dataProvider providerCONVERTUOM + * + * @param mixed $expectedResult + */ + public function testCONVERTUOM($expectedResult, ...$args) + { + $result = Engineering::CONVERTUOM(...$args); + $this->assertEquals($expectedResult, $result); + } + + public function providerCONVERTUOM() + { + return require 'data/Calculation/Engineering/CONVERTUOM.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2BinTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2BinTest.php new file mode 100644 index 00000000..3856c213 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2BinTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerDEC2BIN() + { + return require 'data/Calculation/Engineering/DEC2BIN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2HexTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2HexTest.php new file mode 100644 index 00000000..bc9781dc --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2HexTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerDEC2HEX() + { + return require 'data/Calculation/Engineering/DEC2HEX.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2OctTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2OctTest.php new file mode 100644 index 00000000..4b225b7f --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Dec2OctTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerDEC2OCT() + { + return require 'data/Calculation/Engineering/DEC2OCT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/DeltaTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/DeltaTest.php new file mode 100644 index 00000000..daf30e71 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/DeltaTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerDELTA() + { + return require 'data/Calculation/Engineering/DELTA.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfCTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfCTest.php new file mode 100644 index 00000000..36d89f2e --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfCTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::ERF_PRECISION); + } + + public function providerERFC() + { + return require 'data/Calculation/Engineering/ERFC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfPreciseTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfPreciseTest.php new file mode 100644 index 00000000..6511b5d5 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfPreciseTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::ERF_PRECISION); + } + + public function providerERFPRECISE() + { + return require 'data/Calculation/Engineering/ERFPRECISE.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfTest.php new file mode 100644 index 00000000..709131fa --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ErfTest.php @@ -0,0 +1,33 @@ +assertEquals($expectedResult, $result, '', self::ERF_PRECISION); + } + + public function providerERF() + { + return require 'data/Calculation/Engineering/ERF.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/GeStepTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/GeStepTest.php new file mode 100644 index 00000000..1a6b63b6 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/GeStepTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerGESTEP() + { + return require 'data/Calculation/Engineering/GESTEP.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2BinTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2BinTest.php new file mode 100644 index 00000000..bb7b62bd --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2BinTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerHEX2BIN() + { + return require 'data/Calculation/Engineering/HEX2BIN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2DecTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2DecTest.php new file mode 100644 index 00000000..38f2a28a --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2DecTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerHEX2DEC() + { + return require 'data/Calculation/Engineering/HEX2DEC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2OctTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2OctTest.php new file mode 100644 index 00000000..0ae0f44d --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Hex2OctTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerHEX2OCT() + { + return require 'data/Calculation/Engineering/HEX2OCT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImAbsTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImAbsTest.php new file mode 100644 index 00000000..e52d32b2 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImAbsTest.php @@ -0,0 +1,34 @@ +assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); + } + + public function providerIMABS() + { + return require 'data/Calculation/Engineering/IMABS.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImArgumentTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImArgumentTest.php new file mode 100644 index 00000000..85e61352 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImArgumentTest.php @@ -0,0 +1,34 @@ +assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); + } + + public function providerIMARGUMENT() + { + return require 'data/Calculation/Engineering/IMARGUMENT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImConjugateTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImConjugateTest.php new file mode 100644 index 00000000..189cc593 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImConjugateTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCONJUGATE + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCONJUGATE($expectedResult, $value) + { + $result = Engineering::IMCONJUGATE($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCONJUGATE() + { + return require 'data/Calculation/Engineering/IMCONJUGATE.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCosTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCosTest.php new file mode 100644 index 00000000..d8dc2232 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCosTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCOS + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCOS($expectedResult, $value) + { + $result = Engineering::IMCOS($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCOS() + { + return require 'data/Calculation/Engineering/IMCOS.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCoshTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCoshTest.php new file mode 100644 index 00000000..baa7e94a --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCoshTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCOSH + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCOSH($expectedResult, $value) + { + $result = Engineering::IMCOSH($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCOSH() + { + return require 'data/Calculation/Engineering/IMCOSH.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCotTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCotTest.php new file mode 100644 index 00000000..9e5e6dd6 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCotTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCOT + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCOT($expectedResult, $value) + { + $result = Engineering::IMCOT($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCOT() + { + return require 'data/Calculation/Engineering/IMCOT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCscTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCscTest.php new file mode 100644 index 00000000..c7e11bad --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCscTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCSC + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCSC($expectedResult, $value) + { + $result = Engineering::IMCSC($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCSC() + { + return require 'data/Calculation/Engineering/IMCSC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCschTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCschTest.php new file mode 100644 index 00000000..14bdd30a --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImCschTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMCSCH + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMCSCH($expectedResult, $value) + { + $result = Engineering::IMCSCH($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMCSCH() + { + return require 'data/Calculation/Engineering/IMCSCH.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImDivTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImDivTest.php new file mode 100644 index 00000000..c3e4fb60 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImDivTest.php @@ -0,0 +1,48 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMDIV + * + * @param mixed $expectedResult + */ + public function testIMDIV($expectedResult, ...$args) + { + $result = Engineering::IMDIV(...$args); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMDIV() + { + return require 'data/Calculation/Engineering/IMDIV.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImExpTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImExpTest.php new file mode 100644 index 00000000..cfc7d4fe --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImExpTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMEXP + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMEXP($expectedResult, $value) + { + $result = Engineering::IMEXP($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMEXP() + { + return require 'data/Calculation/Engineering/IMEXP.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLnTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLnTest.php new file mode 100644 index 00000000..d9d44660 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLnTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMLN + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMLN($expectedResult, $value) + { + $result = Engineering::IMLN($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMLN() + { + return require 'data/Calculation/Engineering/IMLN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog10Test.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog10Test.php new file mode 100644 index 00000000..c748ed41 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog10Test.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMLOG10 + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMLOG10($expectedResult, $value) + { + $result = Engineering::IMLOG10($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMLOG10() + { + return require 'data/Calculation/Engineering/IMLOG10.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog2Test.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog2Test.php new file mode 100644 index 00000000..fceda8fd --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImLog2Test.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMLOG2 + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMLOG2($expectedResult, $value) + { + $result = Engineering::IMLOG2($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMLOG2() + { + return require 'data/Calculation/Engineering/IMLOG2.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImPowerTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImPowerTest.php new file mode 100644 index 00000000..f9dd0380 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImPowerTest.php @@ -0,0 +1,48 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMPOWER + * + * @param mixed $expectedResult + */ + public function testIMPOWER($expectedResult, ...$args) + { + $result = Engineering::IMPOWER(...$args); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMPOWER() + { + return require 'data/Calculation/Engineering/IMPOWER.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImProductTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImProductTest.php new file mode 100644 index 00000000..b95c6002 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImProductTest.php @@ -0,0 +1,48 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMPRODUCT + * + * @param mixed $expectedResult + */ + public function testIMPRODUCT($expectedResult, ...$args) + { + $result = Engineering::IMPRODUCT(...$args); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMPRODUCT() + { + return require 'data/Calculation/Engineering/IMPRODUCT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImRealTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImRealTest.php new file mode 100644 index 00000000..317745a9 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImRealTest.php @@ -0,0 +1,34 @@ +assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); + } + + public function providerIMREAL() + { + return require 'data/Calculation/Engineering/IMREAL.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSecTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSecTest.php new file mode 100644 index 00000000..852e4acb --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSecTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSEC + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMSEC($expectedResult, $value) + { + $result = Engineering::IMSEC($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSEC() + { + return require 'data/Calculation/Engineering/IMSEC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSechTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSechTest.php new file mode 100644 index 00000000..63a87e04 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSechTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSECH + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMSECH($expectedResult, $value) + { + $result = Engineering::IMSECH($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSECH() + { + return require 'data/Calculation/Engineering/IMSECH.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinTest.php new file mode 100644 index 00000000..4bb0aaeb --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSIN + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMSIN($expectedResult, $value) + { + $result = Engineering::IMSIN($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSIN() + { + return require 'data/Calculation/Engineering/IMSIN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinhTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinhTest.php new file mode 100644 index 00000000..7640e9b4 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSinhTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSINH + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMSINH($expectedResult, $value) + { + $result = Engineering::IMSINH($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSINH() + { + return require 'data/Calculation/Engineering/IMSINH.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSqrtTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSqrtTest.php new file mode 100644 index 00000000..ae4c4452 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSqrtTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSQRT + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMSQRT($expectedResult, $value) + { + $result = Engineering::IMSQRT($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSQRT() + { + return require 'data/Calculation/Engineering/IMSQRT.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSubTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSubTest.php new file mode 100644 index 00000000..902be213 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSubTest.php @@ -0,0 +1,48 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSUB + * + * @param mixed $expectedResult + */ + public function testIMSUB($expectedResult, ...$args) + { + $result = Engineering::IMSUB(...$args); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSUB() + { + return require 'data/Calculation/Engineering/IMSUB.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSumTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSumTest.php new file mode 100644 index 00000000..07f7e11d --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImSumTest.php @@ -0,0 +1,48 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMSUM + * + * @param mixed $expectedResult + */ + public function testIMSUM($expectedResult, ...$args) + { + $result = Engineering::IMSUM(...$args); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMSUM() + { + return require 'data/Calculation/Engineering/IMSUM.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImTanTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImTanTest.php new file mode 100644 index 00000000..cb8b961f --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImTanTest.php @@ -0,0 +1,49 @@ +complexAssert = new ComplexAssert(); + } + + public function tearDown() + { + $this->complexAssert = null; + } + + /** + * @dataProvider providerIMTAN + * + * @param mixed $expectedResult + * @param mixed $value + */ + public function testIMTAN($expectedResult, $value) + { + $result = Engineering::IMTAN($value); + $this->assertTrue( + $this->complexAssert->assertComplexEquals($expectedResult, $result, self::COMPLEX_PRECISION), + $this->complexAssert->getErrorMessage() + ); + } + + public function providerIMTAN() + { + return require 'data/Calculation/Engineering/IMTAN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImaginaryTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImaginaryTest.php new file mode 100644 index 00000000..b2e85968 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ImaginaryTest.php @@ -0,0 +1,34 @@ +assertEquals($expectedResult, $result, '', self::COMPLEX_PRECISION); + } + + public function providerIMAGINARY() + { + return require 'data/Calculation/Engineering/IMAGINARY.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2BinTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2BinTest.php new file mode 100644 index 00000000..e737b120 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2BinTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerOCT2BIN() + { + return require 'data/Calculation/Engineering/OCT2BIN.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2DecTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2DecTest.php new file mode 100644 index 00000000..6d14e546 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2DecTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerOCT2DEC() + { + return require 'data/Calculation/Engineering/OCT2DEC.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2HexTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2HexTest.php new file mode 100644 index 00000000..5a2252f0 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/Oct2HexTest.php @@ -0,0 +1,31 @@ +assertEquals($expectedResult, $result); + } + + public function providerOCT2HEX() + { + return require 'data/Calculation/Engineering/OCT2HEX.php'; + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ParseComplexTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ParseComplexTest.php new file mode 100644 index 00000000..e438ec39 --- /dev/null +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/ParseComplexTest.php @@ -0,0 +1,28 @@ +assertArrayHasKey('real', $result); + $this->assertEquals($real, $result['real']); + $this->assertArrayHasKey('imaginary', $result); + $this->assertEquals($imaginary, $result['imaginary']); + $this->assertArrayHasKey('suffix', $result); + $this->assertEquals($suffix, $result['suffix']); + } +} diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/EvenTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/EvenTest.php index 7327ac96..65ed5f54 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/EvenTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/EvenTest.php @@ -17,10 +17,11 @@ class EvenTest extends TestCase * @dataProvider providerEVEN * * @param mixed $expectedResult + * @param $value */ - public function testEVEN($expectedResult, ...$args) + public function testEVEN($expectedResult, $value) { - $result = MathTrig::EVEN(...$args); + $result = MathTrig::EVEN($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactDoubleTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactDoubleTest.php index 9dd381d8..5605e40c 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactDoubleTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactDoubleTest.php @@ -17,10 +17,11 @@ class FactDoubleTest extends TestCase * @dataProvider providerFACTDOUBLE * * @param mixed $expectedResult + * @param $value */ - public function testFACTDOUBLE($expectedResult, ...$args) + public function testFACTDOUBLE($expectedResult, $value) { - $result = MathTrig::FACTDOUBLE(...$args); + $result = MathTrig::FACTDOUBLE($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactTest.php index 0270c493..38c95ab1 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/FactTest.php @@ -17,10 +17,11 @@ class FactTest extends TestCase * @dataProvider providerFACT * * @param mixed $expectedResult + * @param $value */ - public function testFACT($expectedResult, ...$args) + public function testFACT($expectedResult, $value) { - $result = MathTrig::FACT(...$args); + $result = MathTrig::FACT($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/IntTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/IntTest.php index 8754dbef..58ba3e44 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/IntTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/IntTest.php @@ -17,10 +17,11 @@ class IntTest extends TestCase * @dataProvider providerINT * * @param mixed $expectedResult + * @param $value */ - public function testINT($expectedResult, ...$args) + public function testINT($expectedResult, $value) { - $result = MathTrig::INT(...$args); + $result = MathTrig::INT($value); $this->assertEquals($expectedResult, $result); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/OddTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/OddTest.php index 0f2fbb4d..1183dd57 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/OddTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/OddTest.php @@ -17,10 +17,11 @@ class OddTest extends TestCase * @dataProvider providerODD * * @param mixed $expectedResult + * @param $value */ - public function testODD($expectedResult, ...$args) + public function testODD($expectedResult, $value) { - $result = MathTrig::ODD(...$args); + $result = MathTrig::ODD($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SignTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SignTest.php index 747a435c..e6f7becd 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SignTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SignTest.php @@ -17,10 +17,11 @@ class SignTest extends TestCase * @dataProvider providerSIGN * * @param mixed $expectedResult + * @param $value */ - public function testSIGN($expectedResult, ...$args) + public function testSIGN($expectedResult, $value) { - $result = MathTrig::SIGN(...$args); + $result = MathTrig::SIGN($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SqrtPiTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SqrtPiTest.php index 18e12871..58b2a3dc 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SqrtPiTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/MathTrig/SqrtPiTest.php @@ -17,10 +17,11 @@ class SqrtPiTest extends TestCase * @dataProvider providerSQRTPI * * @param mixed $expectedResult + * @param $value */ - public function testSQRTPI($expectedResult, ...$args) + public function testSQRTPI($expectedResult, $value) { - $result = MathTrig::SQRTPI(...$args); + $result = MathTrig::SQRTPI($value); $this->assertEquals($expectedResult, $result, '', 1E-12); } diff --git a/tests/data/Calculation/DateTime/WEEKNUM.php b/tests/data/Calculation/DateTime/WEEKNUM.php index 8cbba076..ceb84315 100644 --- a/tests/data/Calculation/DateTime/WEEKNUM.php +++ b/tests/data/Calculation/DateTime/WEEKNUM.php @@ -3,53 +3,43 @@ return [ [ 52, - '21-Dec-2000', - 1, + '21-Dec-2000', 1, ], [ 1, - '2000-01-01', - 1, + '2000-01-01', 1, ], [ 2, - '2000-01-02', - 1, + '2000-01-02', 1, ], [ 1, - '2000-01-01', - 2, + '2000-01-01', 2, ], [ 2, - '2000-01-03', - 2, + '2000-01-03', 2, ], [ 1, - '1995-01-01', - 1, + '1995-01-01', 1, ], [ 1, - '1995-01-07', - 1, + '1995-01-07', 1, ], [ 2, - '1995-01-08', - 1, + '1995-01-08', 1, ], [ 1, - '1995-01-01', - 2, + '1995-01-01', 2, ], [ 2, - '1995-01-02', - 2, + '1995-01-02', 2, ], [ 28, @@ -57,18 +47,15 @@ return [ ], [ '#VALUE!', - '3/7/1977', - 'A', + '3/7/1977', 'A', ], [ '#NUM!', - '3/7/1977', - 0, + '3/7/1977', 0, ], [ '#VALUE!', - 'Invalid', - 1, + 'Invalid', 1, ], [ '#NUM!', diff --git a/tests/data/Calculation/Engineering/BESSELI.php b/tests/data/Calculation/Engineering/BESSELI.php index d6ee156a..a16cb95b 100644 --- a/tests/data/Calculation/Engineering/BESSELI.php +++ b/tests/data/Calculation/Engineering/BESSELI.php @@ -3,277 +3,222 @@ return [ [ '#NUM!', - 1.5, - -1, + 1.5, -1, ], [ 2.249E-5, - -1, - 6, + -1, 6, ], [ 0.0, - 0, - 3, + 0, 3, ], [ 4.8807925900000004, - 3, - 0, + 3, 0, ], [ 0.00027146000000000001, - 1, - 5, + 1, 5, ], [ 0.98166642999999998, - 1.5, - 1, + 1.5, 1, ], [ 0.33783461999999997, - -1.5, - 2.5, + -1.5, 2.5, ], [ 0.0, - -1.5, - 14.99, + -1.5, 14.99, ], [ 0.0, - 1, - 30, + 1, 30, ], [ 2.51671625, - 2.5, - 1, + 2.5, 1, ], [ 2.51671625, - 2.5, - 1.5, + 2.5, 1.5, ], [ -2.51671625, - -2.5, - 1.5, + -2.5, 1.5, ], [ 6.20583492, - 3.5, - 1, + 3.5, 1, ], [ 0.0073673699999999998, - 0.69999999999999996, - 3, + 0.69999999999999996, 3, ], [ 3.8320120499999999, - 3.5, - 2, + 3.5, 2, ], [ '#VALUE!', - 1.5, - 'XYZ', + 1.5, 'XYZ', ], [ '#VALUE!', - 'ABC', - 3, + 'ABC', 3, ], [ -1030.9147225199999, - -9, - 1, + -9, 1, ], [ -6.20583492, - -3.5, - 1, + -3.5, 1, ], [ -0.39288151999999998, - -0.73499999999999999, - 1, + -0.73499999999999999, 1, ], [ 0.0, - 0, - 1, + 0, 1, ], [ 0.01750268, - 0.035000000000000003, - 1, + 0.035000000000000003, 1, ], [ 0.56515910000000003, - 1, - 1, + 1, 1, ], [ 0.98166642999999998, - 1.5, - 1, + 1.5, 1, ], [ 2.51671625, - 2.5, - 1, + 2.5, 1, ], [ 6.20583492, - 3.5, - 1, + 3.5, 1, ], [ 864.49619395000002, - -9, - 2, + -9, 2, ], [ 3.8320120499999999, - -3.5, - 2, + -3.5, 2, ], [ 0.070619940000000006, - -0.73499999999999999, - 2, + -0.73499999999999999, 2, ], [ 0.0, - 0, - 2, + 0, 2, ], [ 0.00015313999999999999, - 0.035000000000000003, - 2, + 0.035000000000000003, 2, ], [ 0.10825973, - 0.90000000000000002, - 2, + 0.90000000000000002, 2, ], [ 0.13574766999999999, - 1, - 2, + 1, 2, ], [ 0.60327242999999997, - 1.8999999999999999, - 2, + 1.8999999999999999, 2, ], [ 1.2764661500000001, - 2.5, - 2, + 2.5, 2, ], [ 3.8320120499999999, - 3.5, - 2, + 3.5, 2, ], [ 6.4221893799999998, - 4, - 2, + 4, 2, ], [ 8.8999999999999995E-7, - 0.035000000000000003, - 3, + 0.035000000000000003, 3, ], [ 0.0073673699999999998, - 0.69999999999999996, - 3, + 0.69999999999999996, 3, ], [ 0.0154285, - 0.89000000000000001, - 3, + 0.89000000000000001, 3, ], [ 3.3372757800000001, - 4, - 3, + 4, 3, ], [ 0.50472435999999998, - 4, - 5, + 4, 5, ], [ 2.8410000000000001E-5, - 1.5, - 7, + 1.5, 7, ], [ 0.00013237000000000001, - 3, - 9, + 3, 9, ], [ 7.3782034300000001, - -3.5, - 0, + -3.5, 0, ], [ 1.6467231899999999, - -1.5, - 0, + -1.5, 0, ], [ 1.0, - 0, - 0, + 0, 0, ], [ 1.26606588, - 1, - 0, + 1, 0, ], [ 1.6467231899999999, - 1.5, - 0, + 1.5, 0, ], [ 3.2898391400000002, - 2.5, - 0, + 2.5, 0, ], [ 7.3782034300000001, - 3.5, - 0, + 3.5, 0, ], [ '#NUM!', - -3.5, - -1, + -3.5, -1, ], [ '#VALUE!', - true, - 1, + true, 1, ], [ '#VALUE!', - 1, - true, + 1, true, ], [ 104777847.71856035, - 21, - 2, + 21, 2, ], ]; diff --git a/tests/data/Calculation/Engineering/COMPLEX.php b/tests/data/Calculation/Engineering/COMPLEX.php index eeb63b71..6b3e137c 100644 --- a/tests/data/Calculation/Engineering/COMPLEX.php +++ b/tests/data/Calculation/Engineering/COMPLEX.php @@ -3,1359 +3,935 @@ return [ [ '3+4i', - 3, - 4, + 3, 4, ], [ '3+4j', - 3, - 4, - 'j', + 3, 4, 'j', ], [ '12.34+5.67j', - 12.34, - 5.6699999999999999, - 'j', + 12.34, 5.6699999999999999, 'j', ], [ '#VALUE!', - 3.5, - 'A', + 3.5, 'A', ], [ '1.234E-5+6780000000i', - 1.234E-5, - 6780000000.0, + 1.234E-5, 6780000000.0, ], [ '123400+6.78E-9i', - 123400.0, - 6.7800000000000002E-9, + 123400.0, 6.7800000000000002E-9, ], [ '3.5+2.5i', - 3.5, - 2.5, + 3.5, 2.5, ], [ '3.5+i', - 3.5, - 1, - ], - [ - 3.5, - 3.5, - 0, + 3.5, 1, ], [ '3.5-i', - 3.5, - -1, + 3.5, -1, ], [ '3.5-2.5i', - 3.5, - -2.5, + 3.5, -2.5, ], [ '1+2.5i', - 1, - 2.5, + 1, 2.5, ], [ '1+i', - 1, - 1, + 1, 1, ], [ 1, - 1, - 0, + 1, 0, ], [ '1-i', - 1, - -1, + 1, -1, ], [ '1-2.5i', - 1, - -2.5, + 1, -2.5, ], [ '2.5i', - 0, - 2.5, + 0, 2.5, ], [ 'i', - 0, - 1, + 0, 1, ], [ 0, - 0, - 0, + 0, 0, ], [ '-i', - 0, - -1, + 0, -1, ], [ '-2.5i', - 0, - -2.5, + 0, -2.5, ], [ '-1+2.5i', - -1, - 2.5, + -1, 2.5, ], [ '-1+i', - -1, - 1, + -1, 1, ], [ -1, - -1, - 0, + -1, 0, ], [ '-1-i', - -1, - -1, + -1, -1, ], [ '-1-2.5i', - -1, - -2.5, - ], - [ - '-3.5+2.5i', - -3.5, - 2.5, - ], - [ - '-3.5+i', - -3.5, - 1, + -1, -2.5, ], [ '-3.5', - -3.5, - 0, - ], - [ - '-3.5-i', - -3.5, - -1, + -3.5, 0, ], [ '-3.5-2.5i', - -3.5, - -2.5, + -3.5, -2.5, ], [ '-2.5-2.5i', - -2.5, - -2.5, + -2.5, -2.5, ], [ '-2.5-2.5i', - -2.5, - -2.5, + -2.5, -2.5, ], [ '-1.5-2.5i', - -1.5, - -2.5, + -1.5, -2.5, ], [ '-1.5-2.5i', - -1.5, - -2.5, + -1.5, -2.5, ], [ '-0.5-2.5i', - -0.5, - -2.5, + -0.5, -2.5, ], [ '-2.5i', - 0, - -2.5, + 0, -2.5, ], [ '0.5-2.5i', - 0.5, - -2.5, + 0.5, -2.5, ], [ '1-2.5i', - 1, - -2.5, + 1, -2.5, ], [ '1.5-2.5i', - 1.5, - -2.5, + 1.5, -2.5, ], [ '2-2.5i', - 2, - -2.5, + 2, -2.5, ], [ '2.5-2.5i', - 2.5, - -2.5, + 2.5, -2.5, ], [ '3-2.5i', - 3, - -2.5, + 3, -2.5, ], [ '3.5-2.5i', - 3.5, - -2.5, + 3.5, -2.5, ], [ '-2.5-2.5i', - -2.5, - -2.5, - ], - [ - '-2.5-2.5i', - -2.5, - -2.5, + -2.5, -2.5, ], [ '-1.5-2.5i', - -1.5, - -2.5, - ], - [ - '-1.5-2.5i', - -1.5, - -2.5, + -1.5, -2.5, ], [ '-0.5-2.5i', - -0.5, - -2.5, + -0.5, -2.5, ], [ '-2.5i', - 0, - -2.5, + 0, -2.5, ], [ '0.5-2.5i', - 0.5, - -2.5, + 0.5, -2.5, ], [ '1-2.5i', - 1, - -2.5, + 1, -2.5, ], [ '1.5-2.5i', - 1.5, - -2.5, + 1.5, -2.5, ], [ '2-2.5i', - 2, - -2.5, + 2, -2.5, ], [ '2.5-2.5i', - 2.5, - -2.5, + 2.5, -2.5, ], [ '3-2.5i', - 3, - -2.5, + 3, -2.5, ], [ '3.5-2.5i', - 3.5, - -2.5, + 3.5, -2.5, ], [ '-2.5-1.5i', - -2.5, - -1.5, - ], - [ - '-2.5-1.5i', - -2.5, - -1.5, + -2.5, -1.5, ], [ '-1.5-1.5i', - -1.5, - -1.5, - ], - [ - '-1.5-1.5i', - -1.5, - -1.5, + -1.5, -1.5, ], [ '-0.5-1.5i', - -0.5, - -1.5, + -0.5, -1.5, ], [ '-1.5i', - 0, - -1.5, + 0, -1.5, ], [ '0.5-1.5i', - 0.5, - -1.5, + 0.5, -1.5, ], [ '1-1.5i', - 1, - -1.5, + 1, -1.5, ], [ '1.5-1.5i', - 1.5, - -1.5, + 1.5, -1.5, ], [ '2-1.5i', - 2, - -1.5, + 2, -1.5, ], [ '2.5-1.5i', - 2.5, - -1.5, + 2.5, -1.5, ], [ '3-1.5i', - 3, - -1.5, + 3, -1.5, ], [ '3.5-1.5i', - 3.5, - -1.5, + 3.5, -1.5, ], [ '-2.5-1.5i', - -2.5, - -1.5, - ], - [ - '-2.5-1.5i', - -2.5, - -1.5, + -2.5, -1.5, ], [ '-1.5-1.5i', - -1.5, - -1.5, - ], - [ - '-1.5-1.5i', - -1.5, - -1.5, + -1.5, -1.5, ], [ '-0.5-1.5i', - -0.5, - -1.5, + -0.5, -1.5, ], [ '-1.5i', - 0, - -1.5, + 0, -1.5, ], [ '0.5-1.5i', - 0.5, - -1.5, + 0.5, -1.5, ], [ '1-1.5i', - 1, - -1.5, + 1, -1.5, ], [ '1.5-1.5i', - 1.5, - -1.5, + 1.5, -1.5, ], [ '2-1.5i', - 2, - -1.5, + 2, -1.5, ], [ '2.5-1.5i', - 2.5, - -1.5, + 2.5, -1.5, ], [ '3-1.5i', - 3, - -1.5, + 3, -1.5, ], [ '3.5-1.5i', - 3.5, - -1.5, + 3.5, -1.5, ], [ '-2.5-0.5i', - -2.5, - -0.5, - ], - [ - '-2.5-0.5i', - -2.5, - -0.5, + -2.5, -0.5, ], [ '-1.5-0.5i', - -1.5, - -0.5, - ], - [ - '-1.5-0.5i', - -1.5, - -0.5, + -1.5, -0.5, ], [ '-0.5-0.5i', - -0.5, - -0.5, + -0.5, -0.5, ], [ '-0.5i', - 0, - -0.5, + 0, -0.5, ], [ '0.5-0.5i', - 0.5, - -0.5, + 0.5, -0.5, ], [ '1-0.5i', - 1, - -0.5, + 1, -0.5, ], [ '1.5-0.5i', - 1.5, - -0.5, + 1.5, -0.5, ], [ '2-0.5i', - 2, - -0.5, + 2, -0.5, ], [ '2.5-0.5i', - 2.5, - -0.5, + 2.5, -0.5, ], [ '3-0.5i', - 3, - -0.5, + 3, -0.5, ], [ '3.5-0.5i', - 3.5, - -0.5, + 3.5, -0.5, ], [ -2.5, - -2.5, - 0, - ], - [ - -2.5, - -2.5, - 0, + -2.5, 0, ], [ -1.5, - -1.5, - 0, - ], - [ - -1.5, - -1.5, - 0, + -1.5, 0, ], [ -0.5, - -0.5, - 0, + -0.5, 0, ], [ 0, - 0, - 0, + 0, 0, ], [ 0.5, - 0.5, - 0, + 0.5, 0, ], [ 1, - 1, - 0, + 1, 0, ], [ 1.5, - 1.5, - 0, + 1.5, 0, ], [ 2, - 2, - 0, + 2, 0, ], [ 2.5, - 2.5, - 0, + 2.5, 0, ], [ 3, - 3, - 0, + 3, 0, ], [ 3.5, - 3.5, - 0, + 3.5, 0, ], [ '-2.5+0.5i', - -2.5, - 0.5, - ], - [ - '-2.5+0.5i', - -2.5, - 0.5, + -2.5, 0.5, ], [ '-1.5+0.5i', - -1.5, - 0.5, - ], - [ - '-1.5+0.5i', - -1.5, - 0.5, + -1.5, 0.5, ], [ '-0.5+0.5i', - -0.5, - 0.5, + -0.5, 0.5, ], [ '0.5i', - 0, - 0.5, + 0, 0.5, ], [ '0.5+0.5i', - 0.5, - 0.5, + 0.5, 0.5, ], [ '1+0.5i', - 1, - 0.5, + 1, 0.5, ], [ '1.5+0.5i', - 1.5, - 0.5, + 1.5, 0.5, ], [ '2+0.5i', - 2, - 0.5, + 2, 0.5, ], [ '2.5+0.5i', - 2.5, - 0.5, + 2.5, 0.5, ], [ '3+0.5i', - 3, - 0.5, + 3, 0.5, ], [ '3.5+0.5i', - 3.5, - 0.5, + 3.5, 0.5, ], [ '-2.5+i', - -2.5, - 1, + -2.5, 1, ], [ '-2.5+i', - -2.5, - 1, + -2.5, 1, ], [ '-1.5+i', - -1.5, - 1, + -1.5, 1, ], [ '-1.5+i', - -1.5, - 1, + -1.5, 1, ], [ '-0.5+i', - -0.5, - 1, + -0.5, 1, ], [ 'i', - 0, - 1, + 0, 1, ], [ '0.5+i', - 0.5, - 1, + 0.5, 1, ], [ '1+i', - 1, - 1, + 1, 1, ], [ '1.5+i', - 1.5, - 1, + 1.5, 1, ], [ '2+i', - 2, - 1, + 2, 1, ], [ '2.5+i', - 2.5, - 1, + 2.5, 1, ], [ '3+i', - 3, - 1, + 3, 1, ], [ '3.5+i', - 3.5, - 1, + 3.5, 1, ], [ '-2.5+1.5i', - -2.5, - 1.5, + -2.5, 1.5, ], [ '-2.5+1.5i', - -2.5, - 1.5, + -2.5, 1.5, ], [ '-1.5+1.5i', - -1.5, - 1.5, + -1.5, 1.5, ], [ '-1.5+1.5i', - -1.5, - 1.5, + -1.5, 1.5, ], [ '-0.5+1.5i', - -0.5, - 1.5, + -0.5, 1.5, ], [ '1.5i', - 0, - 1.5, + 0, 1.5, ], [ '0.5+1.5i', - 0.5, - 1.5, + 0.5, 1.5, ], [ '1+1.5i', - 1, - 1.5, + 1, 1.5, ], [ '1.5+1.5i', - 1.5, - 1.5, + 1.5, 1.5, ], [ '2+1.5i', - 2, - 1.5, + 2, 1.5, ], [ '2.5+1.5i', - 2.5, - 1.5, + 2.5, 1.5, ], [ '3+1.5i', - 3, - 1.5, + 3, 1.5, ], [ '3.5+1.5i', - 3.5, - 1.5, + 3.5, 1.5, ], [ '-2.5+2i', - -2.5, - 2, + -2.5, 2, ], [ '-2.5+2i', - -2.5, - 2, + -2.5, 2, ], [ '-1.5+2i', - -1.5, - 2, + -1.5, 2, ], [ '-1.5+2i', - -1.5, - 2, + -1.5, 2, ], [ '-0.5+2i', - -0.5, - 2, + -0.5, 2, ], [ '2i', - 0, - 2, + 0, 2, ], [ '0.5+2i', - 0.5, - 2, + 0.5, 2, ], [ '1+2i', - 1, - 2, + 1, 2, ], [ '1.5+2i', - 1.5, - 2, + 1.5, 2, ], [ '2+2i', - 2, - 2, + 2, 2, ], [ '2.5+2i', - 2.5, - 2, + 2.5, 2, ], [ '3+2i', - 3, - 2, + 3, 2, ], [ '3.5+2i', - 3.5, - 2, + 3.5, 2, ], [ '-2.5+2.5i', - -2.5, - 2.5, + -2.5, 2.5, ], [ '-2.5+2.5i', - -2.5, - 2.5, + -2.5, 2.5, ], [ '-1.5+2.5i', - -1.5, - 2.5, + -1.5, 2.5, ], [ '-1.5+2.5i', - -1.5, - 2.5, + -1.5, 2.5, ], [ '-0.5+2.5i', - -0.5, - 2.5, + -0.5, 2.5, ], [ '2.5i', - 0, - 2.5, + 0, 2.5, ], [ '0.5+2.5i', - 0.5, - 2.5, + 0.5, 2.5, ], [ '1+2.5i', - 1, - 2.5, + 1, 2.5, ], [ '1.5+2.5i', - 1.5, - 2.5, + 1.5, 2.5, ], [ '2+2.5i', - 2, - 2.5, + 2, 2.5, ], [ '2.5+2.5i', - 2.5, - 2.5, + 2.5, 2.5, ], [ '3+2.5i', - 3, - 2.5, + 3, 2.5, ], [ '3.5+2.5i', - 3.5, - 2.5, + 3.5, 2.5, ], [ '-2.5+3i', - -2.5, - 3, + -2.5, 3, ], [ '-2.5+3i', - -2.5, - 3, + -2.5, 3, ], [ '-1.5+3i', - -1.5, - 3, + -1.5, 3, ], [ '-1.5+3i', - -1.5, - 3, + -1.5, 3, ], [ '-0.5+3i', - -0.5, - 3, + -0.5, 3, ], [ '3i', - 0, - 3, + 0, 3, ], [ '0.5+3i', - 0.5, - 3, + 0.5, 3, ], [ '1+3i', - 1, - 3, + 1, 3, ], [ '1.5+3i', - 1.5, - 3, + 1.5, 3, ], [ '2+3i', - 2, - 3, + 2, 3, ], [ '2.5+3i', - 2.5, - 3, + 2.5, 3, ], [ '3+3i', - 3, - 3, + 3, 3, ], [ '3.5+3i', - 3.5, - 3, + 3.5, 3, ], [ '-2.5+3.5i', - -2.5, - 3.5, + -2.5, 3.5, ], [ '-2.5+3.5i', - -2.5, - 3.5, + -2.5, 3.5, ], [ '-1.5+3.5i', - -1.5, - 3.5, + -1.5, 3.5, ], [ '-1.5+3.5i', - -1.5, - 3.5, + -1.5, 3.5, ], [ '-0.5+3.5i', - -0.5, - 3.5, + -0.5, 3.5, ], [ '3.5i', - 0, - 3.5, + 0, 3.5, ], [ '0.5+3.5i', - 0.5, - 3.5, + 0.5, 3.5, ], [ '1+3.5i', - 1, - 3.5, + 1, 3.5, ], [ '1.5+3.5i', - 1.5, - 3.5, + 1.5, 3.5, ], [ '2+3.5i', - 2, - 3.5, + 2, 3.5, ], [ '2.5+3.5i', - 2.5, - 3.5, + 2.5, 3.5, ], [ '3+3.5i', - 3, - 3.5, + 3, 3.5, ], [ '3.5+3.5i', - 3.5, - 3.5, + 3.5, 3.5, ], [ '-2.5-2.5i', - -2.5, - -2.5, - 'i', + -2.5, -2.5, 'i', ], [ '-2.5-2.5i', - -2.5, - -2.5, - 'i', + -2.5, -2.5, 'i', ], [ '-1.5-2.5i', - -1.5, - -2.5, - 'i', + -1.5, -2.5, 'i', ], [ '-1.5-2.5i', - -1.5, - -2.5, - 'i', + -1.5, -2.5, 'i', ], [ '-0.5-2.5i', - -0.5, - -2.5, - 'i', + -0.5, -2.5, 'i', ], [ '-2.5i', - 0, - -2.5, - 'i', + 0, -2.5, 'i', ], [ '0.5-2.5i', - 0.5, - -2.5, - 'i', + 0.5, -2.5, 'i', ], [ '1-2.5i', - 1, - -2.5, - 'i', + 1, -2.5, 'i', ], [ '1.5-2.5i', - 1.5, - -2.5, - 'i', + 1.5, -2.5, 'i', ], [ '2-2.5i', - 2, - -2.5, - 'i', + 2, -2.5, 'i', ], [ '2.5-2.5i', - 2.5, - -2.5, - 'i', + 2.5, -2.5, 'i', ], [ '3-2.5i', - 3, - -2.5, - 'i', + 3, -2.5, 'i', ], [ '3.5-2.5i', - 3.5, - -2.5, - 'i', + 3.5, -2.5, 'i', ], [ '-2.5-2.5i', - -2.5, - -2.5, - 'i', - ], - [ - '-2.5-2.5i', - -2.5, - -2.5, - 'i', + -2.5, -2.5, 'i', ], [ '-1.5-2.5i', - -1.5, - -2.5, - 'i', - ], - [ - '-1.5-2.5i', - -1.5, - -2.5, - 'i', + -1.5, -2.5, 'i', ], [ '-0.5-2.5i', - -0.5, - -2.5, - 'i', + -0.5, -2.5, 'i', ], [ '-2.5i', - 0, - -2.5, - 'i', - ], - [ - '0.5-2.5i', - 0.5, - -2.5, - 'i', + 0, -2.5, 'i', ], [ '1-2.5i', - 1, - -2.5, - 'i', + 1, -2.5, 'i', ], [ '1.5-2.5i', - 1.5, - -2.5, - 'i', + 1.5, -2.5, 'i', ], [ '2-2.5i', - 2, - -2.5, - 'i', - ], - [ - '2.5-2.5i', - 2.5, - -2.5, - 'i', + 2, -2.5, 'i', ], [ '3-2.5i', - 3, - -2.5, - 'i', + 3, -2.5, 'i', ], [ '3.5-2.5i', - 3.5, - -2.5, - 'i', + 3.5, -2.5, 'i', ], [ '-2.5-1.5i', - -2.5, - -1.5, - 'i', - ], - [ - '-2.5-1.5i', - -2.5, - -1.5, - 'i', + -2.5, -1.5, 'i', ], [ '-1.5-1.5i', - -1.5, - -1.5, - 'i', - ], - [ - '-1.5-1.5i', - -1.5, - -1.5, - 'i', + -1.5, -1.5, 'i', ], [ '-0.5-1.5i', - -0.5, - -1.5, - 'i', + -0.5, -1.5, 'i', ], [ '-1.5i', - 0, - -1.5, - 'i', + 0, -1.5, 'i', ], [ '0.5-1.5i', - 0.5, - -1.5, - 'i', + 0.5, -1.5, 'i', ], [ '1-1.5i', - 1, - -1.5, - 'i', + 1, -1.5, 'i', ], [ '1.5-1.5i', - 1.5, - -1.5, - 'i', + 1.5, -1.5, 'i', ], [ '2-1.5i', - 2, - -1.5, - 'i', + 2, -1.5, 'i', ], [ '2.5-1.5i', - 2.5, - -1.5, - 'i', + 2.5, -1.5, 'i', ], [ '3-1.5i', - 3, - -1.5, - 'i', + 3, -1.5, 'i', ], [ '3.5-1.5i', - 3.5, - -1.5, - 'i', + 3.5, -1.5, 'i', ], [ '-2.5-1.5i', - -2.5, - -1.5, - 'i', - ], - [ - '-2.5-1.5i', - -2.5, - -1.5, - 'i', + -2.5, -1.5, 'i', ], [ '-1.5-1.5i', - -1.5, - -1.5, - 'i', - ], - [ - '-1.5-1.5i', - -1.5, - -1.5, - 'i', + -1.5, -1.5, 'i', ], [ '-0.5-1.5i', - -0.5, - -1.5, - 'i', + -0.5, -1.5, 'i', ], [ '-1.5i', - 0, - -1.5, - 'i', + 0, -1.5, 'i', ], [ '0.5-1.5i', - 0.5, - -1.5, - 'i', + 0.5, -1.5, 'i', ], [ '1-1.5i', - 1, - -1.5, - 'i', + 1, -1.5, 'i', ], [ '1.5-1.5i', - 1.5, - -1.5, - 'i', + 1.5, -1.5, 'i', ], [ '2-1.5i', - 2, - -1.5, - 'i', + 2, -1.5, 'i', ], [ '2.5-1.5i', - 2.5, - -1.5, - 'i', + 2.5, -1.5, 'i', ], [ '3-1.5i', - 3, - -1.5, - 'i', + 3, -1.5, 'i', ], [ '3.5-1.5i', - 3.5, - -1.5, - 'i', + 3.5, -1.5, 'i', ], [ '-2.5-0.5i', - -2.5, - -0.5, - 'i', - ], - [ - '-2.5-0.5i', - -2.5, - -0.5, - 'i', + -2.5, -0.5, 'i', ], [ '-1.5-0.5i', - -1.5, - -0.5, - 'i', - ], - [ - '-1.5-0.5i', - -1.5, - -0.5, - 'i', + -1.5, -0.5, 'i', ], [ '-0.5-0.5i', - -0.5, - -0.5, - 'i', + -0.5, -0.5, 'i', ], [ '-0.5i', - 0, - -0.5, - 'i', + 0, -0.5, 'i', ], [ '0.5-0.5i', - 0.5, - -0.5, - 'i', + 0.5, -0.5, 'i', ], [ '1-0.5i', @@ -1557,1529 +1133,1022 @@ return [ ], [ '-2.5+i', - -2.5, - 1, - 'i', + -2.5, 1, 'i', ], [ '-1.5+i', - -1.5, - 1, - 'i', + -1.5, 1, 'i', ], [ '-1.5+i', - -1.5, - 1, - 'i', + -1.5, 1, 'i', ], [ '-0.5+i', - -0.5, - 1, - 'i', + -0.5, 1, 'i', ], [ 'i', - 0, - 1, - 'i', + 0, 1, 'i', ], [ '0.5+i', - 0.5, - 1, - 'i', + 0.5, 1, 'i', ], [ '1+i', - 1, - 1, - 'i', + 1, 1, 'i', ], [ '1.5+i', - 1.5, - 1, - 'i', + 1.5, 1, 'i', ], [ '2+i', - 2, - 1, - 'i', + 2, 1, 'i', ], [ '2.5+i', - 2.5, - 1, - 'i', + 2.5, 1, 'i', ], [ '3+i', - 3, - 1, - 'i', + 3, 1, 'i', ], [ '3.5+i', - 3.5, - 1, - 'i', + 3.5, 1, 'i', ], [ '-2.5+1.5i', - -2.5, - 1.5, - 'i', + -2.5, 1.5, 'i', ], [ '-2.5+1.5i', - -2.5, - 1.5, - 'i', + -2.5, 1.5, 'i', ], [ '-1.5+1.5i', - -1.5, - 1.5, - 'i', + -1.5, 1.5, 'i', ], [ '-1.5+1.5i', - -1.5, - 1.5, - 'i', + -1.5, 1.5, 'i', ], [ '-0.5+1.5i', - -0.5, - 1.5, - 'i', + -0.5, 1.5, 'i', ], [ '1.5i', - 0, - 1.5, - 'i', + 0, 1.5, 'i', ], [ '0.5+1.5i', - 0.5, - 1.5, - 'i', + 0.5, 1.5, 'i', ], [ '1+1.5i', - 1, - 1.5, - 'i', + 1, 1.5, 'i', ], [ '1.5+1.5i', - 1.5, - 1.5, - 'i', + 1.5, 1.5, 'i', ], [ '2+1.5i', - 2, - 1.5, - 'i', + 2, 1.5, 'i', ], [ '2.5+1.5i', - 2.5, - 1.5, - 'i', + 2.5, 1.5, 'i', ], [ '3+1.5i', - 3, - 1.5, - 'i', + 3, 1.5, 'i', ], [ '3.5+1.5i', - 3.5, - 1.5, - 'i', + 3.5, 1.5, 'i', ], [ '-2.5+2i', - -2.5, - 2, - 'i', + -2.5, 2, 'i', ], [ '-2.5+2i', - -2.5, - 2, - 'i', + -2.5, 2, 'i', ], [ '-1.5+2i', - -1.5, - 2, - 'i', + -1.5, 2, 'i', ], [ '-1.5+2i', - -1.5, - 2, - 'i', + -1.5, 2, 'i', ], [ '-0.5+2i', - -0.5, - 2, - 'i', + -0.5, 2, 'i', ], [ '2i', - 0, - 2, - 'i', + 0, 2, 'i', ], [ '0.5+2i', - 0.5, - 2, - 'i', + 0.5, 2, 'i', ], [ '1+2i', - 1, - 2, - 'i', + 1, 2, 'i', ], [ '1.5+2i', - 1.5, - 2, - 'i', + 1.5, 2, 'i', ], [ '2+2i', - 2, - 2, - 'i', + 2, 2, 'i', ], [ '2.5+2i', - 2.5, - 2, - 'i', + 2.5, 2, 'i', ], [ '3+2i', - 3, - 2, - 'i', + 3, 2, 'i', ], [ '3.5+2i', - 3.5, - 2, - 'i', + 3.5, 2, 'i', ], [ '-2.5+2.5i', - -2.5, - 2.5, - 'i', + -2.5, 2.5, 'i', ], [ '-2.5+2.5i', - -2.5, - 2.5, - 'i', + -2.5, 2.5, 'i', ], [ '-1.5+2.5i', - -1.5, - 2.5, - 'i', + -1.5, 2.5, 'i', ], [ '-1.5+2.5i', - -1.5, - 2.5, - 'i', + -1.5, 2.5, 'i', ], [ '-0.5+2.5i', - -0.5, - 2.5, - 'i', + -0.5, 2.5, 'i', ], [ '2.5i', - 0, - 2.5, - 'i', + 0, 2.5, 'i', ], [ '0.5+2.5i', - 0.5, - 2.5, - 'i', + 0.5, 2.5, 'i', ], [ '1+2.5i', - 1, - 2.5, - 'i', + 1, 2.5, 'i', ], [ '1.5+2.5i', - 1.5, - 2.5, - 'i', + 1.5, 2.5, 'i', ], [ '2+2.5i', - 2, - 2.5, - 'i', + 2, 2.5, 'i', ], [ '2.5+2.5i', - 2.5, - 2.5, - 'i', + 2.5, 2.5, 'i', ], [ '3+2.5i', - 3, - 2.5, - 'i', + 3, 2.5, 'i', ], [ '3.5+2.5i', - 3.5, - 2.5, - 'i', + 3.5, 2.5, 'i', ], [ '-2.5+3i', - -2.5, - 3, - 'i', + -2.5, 3, 'i', ], [ '-2.5+3i', - -2.5, - 3, - 'i', + -2.5, 3, 'i', ], [ '-1.5+3i', - -1.5, - 3, - 'i', + -1.5, 3, 'i', ], [ '-1.5+3i', - -1.5, - 3, - 'i', + -1.5, 3, 'i', ], [ '-0.5+3i', - -0.5, - 3, - 'i', + -0.5, 3, 'i', ], [ '3i', - 0, - 3, - 'i', + 0, 3, 'i', ], [ '0.5+3i', - 0.5, - 3, - 'i', + 0.5, 3, 'i', ], [ '1+3i', - 1, - 3, - 'i', + 1, 3, 'i', ], [ '1.5+3i', - 1.5, - 3, - 'i', + 1.5, 3, 'i', ], [ '2+3i', - 2, - 3, - 'i', + 2, 3, 'i', ], [ '2.5+3i', - 2.5, - 3, - 'i', + 2.5, 3, 'i', ], [ '3+3i', - 3, - 3, - 'i', + 3, 3, 'i', ], [ '3.5+3i', - 3.5, - 3, - 'i', + 3.5, 3, 'i', ], [ '-2.5+3.5i', - -2.5, - 3.5, - 'i', + -2.5, 3.5, 'i', ], [ '-2.5+3.5i', - -2.5, - 3.5, - 'i', + -2.5, 3.5, 'i', ], [ '-1.5+3.5i', - -1.5, - 3.5, - 'i', + -1.5, 3.5, 'i', ], [ '-1.5+3.5i', - -1.5, - 3.5, - 'i', + -1.5, 3.5, 'i', ], [ '-0.5+3.5i', - -0.5, - 3.5, - 'i', + -0.5, 3.5, 'i', ], [ '3.5i', - 0, - 3.5, - 'i', + 0, 3.5, 'i', ], [ '0.5+3.5i', - 0.5, - 3.5, - 'i', + 0.5, 3.5, 'i', ], [ '1+3.5i', - 1, - 3.5, - 'i', + 1, 3.5, 'i', ], [ '1.5+3.5i', - 1.5, - 3.5, - 'i', + 1.5, 3.5, 'i', ], [ '2+3.5i', - 2, - 3.5, - 'i', + 2, 3.5, 'i', ], [ '2.5+3.5i', - 2.5, - 3.5, - 'i', + 2.5, 3.5, 'i', ], [ '3+3.5i', - 3, - 3.5, - 'i', + 3, 3.5, 'i', ], [ '3.5+3.5i', - 3.5, - 3.5, - 'i', + 3.5, 3.5, 'i', ], [ '-2.5-2.5j', - -2.5, - -2.5, - 'j', + -2.5, -2.5, 'j', ], [ '-2.5-2.5j', - -2.5, - -2.5, - 'j', + -2.5, -2.5, 'j', ], [ '-1.5-2.5j', - -1.5, - -2.5, - 'j', + -1.5, -2.5, 'j', ], [ '-1.5-2.5j', - -1.5, - -2.5, - 'j', + -1.5, -2.5, 'j', ], [ '-0.5-2.5j', - -0.5, - -2.5, - 'j', + -0.5, -2.5, 'j', ], [ '-2.5j', - 0, - -2.5, - 'j', + 0, -2.5, 'j', ], [ '0.5-2.5j', - 0.5, - -2.5, - 'j', + 0.5, -2.5, 'j', ], [ '1-2.5j', - 1, - -2.5, - 'j', + 1, -2.5, 'j', ], [ '1.5-2.5j', - 1.5, - -2.5, - 'j', + 1.5, -2.5, 'j', ], [ '2-2.5j', - 2, - -2.5, - 'j', + 2, -2.5, 'j', ], [ '2.5-2.5j', - 2.5, - -2.5, - 'j', + 2.5, -2.5, 'j', ], [ '3-2.5j', - 3, - -2.5, - 'j', + 3, -2.5, 'j', ], [ '3.5-2.5j', - 3.5, - -2.5, - 'j', + 3.5, -2.5, 'j', ], [ '-2.5-2.5j', - -2.5, - -2.5, - 'j', + -2.5, -2.5, 'j', ], [ '-2.5-2.5j', - -2.5, - -2.5, - 'j', + -2.5, -2.5, 'j', ], [ '-1.5-2.5j', - -1.5, - -2.5, - 'j', + -1.5, -2.5, 'j', ], [ '-1.5-2.5j', - -1.5, - -2.5, - 'j', + -1.5, -2.5, 'j', ], [ '-0.5-2.5j', - -0.5, - -2.5, - 'j', + -0.5, -2.5, 'j', ], [ '-2.5j', - 0, - -2.5, - 'j', + 0, -2.5, 'j', ], [ '0.5-2.5j', - 0.5, - -2.5, - 'j', + 0.5, -2.5, 'j', ], [ '1-2.5j', - 1, - -2.5, - 'j', + 1, -2.5, 'j', ], [ '1.5-2.5j', - 1.5, - -2.5, - 'j', + 1.5, -2.5, 'j', ], [ '2-2.5j', - 2, - -2.5, - 'j', + 2, -2.5, 'j', ], [ '2.5-2.5j', - 2.5, - -2.5, - 'j', + 2.5, -2.5, 'j', ], [ '3-2.5j', - 3, - -2.5, - 'j', + 3, -2.5, 'j', ], [ '3.5-2.5j', - 3.5, - -2.5, - 'j', + 3.5, -2.5, 'j', ], [ '-2.5-1.5j', - -2.5, - -1.5, - 'j', + -2.5, -1.5, 'j', ], [ '-2.5-1.5j', - -2.5, - -1.5, - 'j', + -2.5, -1.5, 'j', ], [ '-1.5-1.5j', - -1.5, - -1.5, - 'j', + -1.5, -1.5, 'j', ], [ '-1.5-1.5j', - -1.5, - -1.5, - 'j', + -1.5, -1.5, 'j', ], [ '-0.5-1.5j', - -0.5, - -1.5, - 'j', + -0.5, -1.5, 'j', ], [ '-1.5j', - 0, - -1.5, - 'j', + 0, -1.5, 'j', ], [ '0.5-1.5j', - 0.5, - -1.5, - 'j', + 0.5, -1.5, 'j', ], [ '1-1.5j', - 1, - -1.5, - 'j', + 1, -1.5, 'j', ], [ '1.5-1.5j', - 1.5, - -1.5, - 'j', + 1.5, -1.5, 'j', ], [ '2-1.5j', - 2, - -1.5, - 'j', + 2, -1.5, 'j', ], [ '2.5-1.5j', - 2.5, - -1.5, - 'j', + 2.5, -1.5, 'j', ], [ '3-1.5j', - 3, - -1.5, - 'j', + 3, -1.5, 'j', ], [ '3.5-1.5j', - 3.5, - -1.5, - 'j', + 3.5, -1.5, 'j', ], [ '-2.5-1.5j', - -2.5, - -1.5, - 'j', + -2.5, -1.5, 'j', ], [ '-2.5-1.5j', - -2.5, - -1.5, - 'j', + -2.5, -1.5, 'j', ], [ '-1.5-1.5j', - -1.5, - -1.5, - 'j', + -1.5, -1.5, 'j', ], [ '-1.5-1.5j', - -1.5, - -1.5, - 'j', + -1.5, -1.5, 'j', ], [ '-0.5-1.5j', - -0.5, - -1.5, - 'j', + -0.5, -1.5, 'j', ], [ '-1.5j', - 0, - -1.5, - 'j', + 0, -1.5, 'j', ], [ '0.5-1.5j', - 0.5, - -1.5, - 'j', + 0.5, -1.5, 'j', ], [ '1-1.5j', - 1, - -1.5, - 'j', + 1, -1.5, 'j', ], [ '1.5-1.5j', - 1.5, - -1.5, - 'j', + 1.5, -1.5, 'j', ], [ '2-1.5j', - 2, - -1.5, - 'j', + 2, -1.5, 'j', ], [ '2.5-1.5j', - 2.5, - -1.5, - 'j', + 2.5, -1.5, 'j', ], [ '3-1.5j', - 3, - -1.5, - 'j', + 3, -1.5, 'j', ], [ '3.5-1.5j', - 3.5, - -1.5, - 'j', + 3.5, -1.5, 'j', ], [ '-2.5-0.5j', - -2.5, - -0.5, - 'j', + -2.5, -0.5, 'j', ], [ '-2.5-0.5j', - -2.5, - -0.5, - 'j', + -2.5, -0.5, 'j', ], [ '-1.5-0.5j', - -1.5, - -0.5, - 'j', + -1.5, -0.5, 'j', ], [ '-1.5-0.5j', - -1.5, - -0.5, - 'j', + -1.5, -0.5, 'j', ], [ '-0.5-0.5j', - -0.5, - -0.5, - 'j', + -0.5, -0.5, 'j', ], [ '-0.5j', - 0, - -0.5, - 'j', + 0, -0.5, 'j', ], [ '0.5-0.5j', - 0.5, - -0.5, - 'j', + 0.5, -0.5, 'j', ], [ '1-0.5j', - 1, - -0.5, - 'j', + 1, -0.5, 'j', ], [ '1.5-0.5j', - 1.5, - -0.5, - 'j', + 1.5, -0.5, 'j', ], [ '2-0.5j', - 2, - -0.5, - 'j', + 2, -0.5, 'j', ], [ '2.5-0.5j', - 2.5, - -0.5, - 'j', + 2.5, -0.5, 'j', ], [ '3-0.5j', - 3, - -0.5, - 'j', + 3, -0.5, 'j', ], [ '3.5-0.5j', - 3.5, - -0.5, - 'j', + 3.5, -0.5, 'j', ], [ -2.5, - -2.5, - 0, - 'j', + -2.5, 0, 'j', ], [ -2.5, - -2.5, - 0, - 'j', + -2.5, 0, 'j', ], [ -1.5, - -1.5, - 0, - 'j', + -1.5, 0, 'j', ], [ -1.5, - -1.5, - 0, - 'j', + -1.5, 0, 'j', ], [ -0.5, - -0.5, - 0, - 'j', + -0.5, 0, 'j', ], [ 0, - 0, - 0, - 'j', + 0, 0, 'j', ], [ 0.5, - 0.5, - 0, - 'j', + 0.5, 0, 'j', ], [ 1, - 1, - 0, - 'j', + 1, 0, 'j', ], [ 1.5, - 1.5, - 0, - 'j', - ], + 1.5, 0, + 'j', ], [ 2, - 2, - 0, - 'j', + 2, 0, 'j', ], [ 2.5, - 2.5, - 0, - 'j', + 2.5, 0, 'j', ], [ 3, - 3, - 0, - 'j', + 3, 0, 'j', ], [ 3.5, - 3.5, - 0, - 'j', + 3.5, 0, 'j', ], [ '-2.5+0.5j', - -2.5, - 0.5, - 'j', + -2.5, 0.5, 'j', ], [ '-2.5+0.5j', - -2.5, - 0.5, - 'j', + -2.5, 0.5, 'j', ], [ '-1.5+0.5j', - -1.5, - 0.5, - 'j', + -1.5, 0.5, 'j', ], [ '-1.5+0.5j', - -1.5, - 0.5, - 'j', + -1.5, 0.5, 'j', ], [ '-0.5+0.5j', - -0.5, - 0.5, - 'j', + -0.5, 0.5, 'j', ], [ '0.5j', - 0, - 0.5, - 'j', + 0, 0.5, 'j', ], [ '0.5+0.5j', - 0.5, - 0.5, - 'j', + 0.5, 0.5, 'j', ], [ '1+0.5j', - 1, - 0.5, - 'j', + 1, 0.5, 'j', ], [ '1.5+0.5j', - 1.5, - 0.5, - 'j', + 1.5, 0.5, 'j', ], [ '2+0.5j', - 2, - 0.5, - 'j', + 2, 0.5, 'j', ], [ '2.5+0.5j', - 2.5, - 0.5, - 'j', + 2.5, 0.5, 'j', ], [ '3+0.5j', - 3, - 0.5, - 'j', + 3, 0.5, 'j', ], [ '3.5+0.5j', - 3.5, - 0.5, - 'j', + 3.5, 0.5, 'j', ], [ '-2.5+j', - -2.5, - 1, - 'j', + -2.5, 1, 'j', ], [ '-2.5+j', - -2.5, - 1, - 'j', + -2.5, 1, 'j', ], [ '-1.5+j', - -1.5, - 1, - 'j', + -1.5, 1, 'j', ], [ '-1.5+j', - -1.5, - 1, - 'j', + -1.5, 1, 'j', ], [ '-0.5+j', - -0.5, - 1, - 'j', + -0.5, 1, 'j', ], [ 'j', - 0, - 1, - 'j', + 0, 1, 'j', ], [ '0.5+j', - 0.5, - 1, - 'j', + 0.5, 1, 'j', ], [ '1+j', - 1, - 1, - 'j', + 1, 1, 'j', ], [ '1.5+j', - 1.5, - 1, - 'j', + 1.5, 1, 'j', ], [ '2+j', - 2, - 1, - 'j', + 2, 1, 'j', ], [ '2.5+j', - 2.5, - 1, - 'j', + 2.5, 1, 'j', ], [ '3+j', - 3, - 1, - 'j', + 3, 1, 'j', ], [ '3.5+j', - 3.5, - 1, - 'j', + 3.5, 1, 'j', ], [ '-2.5+1.5j', - -2.5, - 1.5, - 'j', + -2.5, 1.5, 'j', ], [ '-2.5+1.5j', - -2.5, - 1.5, - 'j', + -2.5, 1.5, 'j', ], [ '-1.5+1.5j', - -1.5, - 1.5, - 'j', + -1.5, 1.5, 'j', ], [ '-1.5+1.5j', - -1.5, - 1.5, - 'j', + -1.5, 1.5, 'j', ], [ '-0.5+1.5j', - -0.5, - 1.5, - 'j', + -0.5, 1.5, 'j', ], [ '1.5j', - 0, - 1.5, - 'j', + 0, 1.5, 'j', ], [ '0.5+1.5j', - 0.5, - 1.5, - 'j', + 0.5, 1.5, 'j', ], [ '1+1.5j', - 1, - 1.5, - 'j', + 1, 1.5, 'j', ], [ '1.5+1.5j', - 1.5, - 1.5, - 'j', + 1.5, 1.5, 'j', ], [ '2+1.5j', - 2, - 1.5, - 'j', + 2, 1.5, 'j', ], [ '2.5+1.5j', - 2.5, - 1.5, - 'j', + 2.5, 1.5, 'j', ], [ '3+1.5j', - 3, - 1.5, - 'j', + 3, 1.5, 'j', ], [ '3.5+1.5j', - 3.5, - 1.5, - 'j', + 3.5, 1.5, 'j', ], [ '-2.5+2j', - -2.5, - 2, - 'j', + -2.5, 2, 'j', ], [ '-2.5+2j', - -2.5, - 2, - 'j', + -2.5, 2, 'j', ], [ '-1.5+2j', - -1.5, - 2, - 'j', + -1.5, 2, 'j', ], [ '-1.5+2j', - -1.5, - 2, - 'j', + -1.5, 2, 'j', ], [ '-0.5+2j', - -0.5, - 2, - 'j', + -0.5, 2, 'j', ], [ '2j', - 0, - 2, - 'j', + 0, 2, 'j', ], [ '0.5+2j', - 0.5, - 2, - 'j', + 0.5, 2, 'j', ], [ '1+2j', - 1, - 2, - 'j', + 1, 2, 'j', ], [ '1.5+2j', - 1.5, - 2, - 'j', + 1.5, 2, 'j', ], [ '2+2j', - 2, - 2, - 'j', + 2, 2, 'j', ], [ '2.5+2j', - 2.5, - 2, - 'j', + 2.5, 2, 'j', ], [ '3+2j', - 3, - 2, - 'j', + 3, 2, 'j', ], [ '3.5+2j', - 3.5, - 2, - 'j', + 3.5, 2, 'j', ], [ '-2.5+2.5j', - -2.5, - 2.5, - 'j', + -2.5, 2.5, 'j', ], [ '-2.5+2.5j', - -2.5, - 2.5, - 'j', + -2.5, 2.5, 'j', ], [ '-1.5+2.5j', - -1.5, - 2.5, - 'j', + -1.5, 2.5, 'j', ], [ '-1.5+2.5j', - -1.5, - 2.5, - 'j', + -1.5, 2.5, 'j', ], [ '-0.5+2.5j', - -0.5, - 2.5, - 'j', + -0.5, 2.5, 'j', ], [ '2.5j', - 0, - 2.5, - 'j', + 0, 2.5, 'j', ], [ '0.5+2.5j', - 0.5, - 2.5, - 'j', + 0.5, 2.5, 'j', ], [ '1+2.5j', - 1, - 2.5, - 'j', + 1, 2.5, 'j', ], [ '1.5+2.5j', - 1.5, - 2.5, - 'j', + 1.5, 2.5, 'j', ], [ '2+2.5j', - 2, - 2.5, - 'j', + 2, 2.5, 'j', ], [ '2.5+2.5j', - 2.5, - 2.5, - 'j', + 2.5, 2.5, 'j', ], [ '3+2.5j', - 3, - 2.5, - 'j', + 3, 2.5, 'j', ], [ '3.5+2.5j', - 3.5, - 2.5, - 'j', + 3.5, 2.5, 'j', ], [ '-2.5+3j', - -2.5, - 3, - 'j', + -2.5, 3, 'j', ], [ '-2.5+3j', - -2.5, - 3, - 'j', + -2.5, 3, 'j', ], [ '-1.5+3j', - -1.5, - 3, - 'j', + -1.5, 3, 'j', ], [ '-1.5+3j', - -1.5, - 3, - 'j', + -1.5, 3, 'j', ], [ '-0.5+3j', - -0.5, - 3, - 'j', + -0.5, 3, 'j', ], [ '3j', - 0, - 3, - 'j', + 0, 3, 'j', ], [ '0.5+3j', - 0.5, - 3, - 'j', + 0.5, 3, 'j', ], [ '1+3j', - 1, - 3, - 'j', + 1, 3, 'j', ], [ '1.5+3j', - 1.5, - 3, - 'j', + 1.5, 3, 'j', ], [ '2+3j', - 2, - 3, - 'j', + 2, 3, 'j', ], [ '2.5+3j', - 2.5, - 3, - 'j', + 2.5, 3, 'j', ], [ '3+3j', - 3, - 3, - 'j', + 3, 3, 'j', ], [ '3.5+3j', - 3.5, - 3, - 'j', + 3.5, 3, 'j', ], [ '-2.5+3.5j', - -2.5, - 3.5, - 'j', + -2.5, 3.5, 'j', ], [ '-2.5+3.5j', - -2.5, - 3.5, - 'j', + -2.5, 3.5, 'j', ], [ '-1.5+3.5j', - -1.5, - 3.5, - 'j', + -1.5, 3.5, 'j', ], [ '-1.5+3.5j', - -1.5, - 3.5, - 'j', + -1.5, 3.5, 'j', ], [ '-0.5+3.5j', - -0.5, - 3.5, - 'j', + -0.5, 3.5, 'j', ], [ '3.5j', - 0, - 3.5, - 'j', + 0, 3.5, 'j', ], [ '0.5+3.5j', - 0.5, - 3.5, - 'j', + 0.5, 3.5, 'j', ], [ '1+3.5j', - 1, - 3.5, - 'j', + 1, 3.5, 'j', ], [ '1.5+3.5j', - 1.5, - 3.5, - 'j', + 1.5, 3.5, 'j', ], [ '2+3.5j', - 2, - 3.5, - 'j', + 2, 3.5, 'j', ], [ '2.5+3.5j', - 2.5, - 3.5, - 'j', + 2.5, 3.5, 'j', ], [ '3+3.5j', - 3, - 3.5, - 'j', + 3, 3.5, 'j', ], [ '3.5+3.5j', - 3.5, - 3.5, - 'j', + 3.5, 3.5, 'j', ], [ '-1.23-4.56i', - -1.23, - -4.5599999999999996, + -1.23, -4.5599999999999996, ], [ '-3.21i', - 0, - -3.21, - 'i', + 0, -3.21, 'i', ], [ '1.23-2.34j', - 1.23, - -2.3399999999999999, - 'j', + 1.23, -2.3399999999999999, 'j', ], [ -1.23, - -1.23, - 0, + -1.23, 0, ], [ 0, - 0, - 0, - 'i', + 0, 0, 'i', ], [ 1.23, - 1.23, - 0, - 'j', + 1.23, 0, 'j', ], [ '-1.23+4.56i', - -1.23, - 4.5599999999999996, + -1.23, 4.5599999999999996, ], [ '3.21i', - 0, - 3.21, - 'i', + 0, 3.21, 'i', ], [ '1.23+2.34j', - 1.23, - 2.3399999999999999, - 'j', + 1.23, 2.3399999999999999, 'j', ], ];