From 450c6ead99598cdd351b14af224d23fd2aad1ffc Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 31 Jul 2016 23:14:55 +0900 Subject: [PATCH] Fix unit tests for IMEXP() function The expected value were incorrect according to LibreOffice 5 and wolframalpha.com. --- .../src/Calculation/EngineeringTest.php | 1 - .../Calculation/Engineering/IMEXP.data | 54 +++++++++---------- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/unitTests/Classes/src/Calculation/EngineeringTest.php b/unitTests/Classes/src/Calculation/EngineeringTest.php index b5b03ab5..d78cb760 100644 --- a/unitTests/Classes/src/Calculation/EngineeringTest.php +++ b/unitTests/Classes/src/Calculation/EngineeringTest.php @@ -228,7 +228,6 @@ class EngineeringTest extends \PHPUnit_Framework_TestCase /** * @dataProvider providerIMEXP - * @group fail19 */ public function testIMEXP() { diff --git a/unitTests/rawTestData/Calculation/Engineering/IMEXP.data b/unitTests/rawTestData/Calculation/Engineering/IMEXP.data index d0eaadd3..57995a82 100644 --- a/unitTests/rawTestData/Calculation/Engineering/IMEXP.data +++ b/unitTests/rawTestData/Calculation/Engineering/IMEXP.data @@ -1,27 +1,27 @@ -"12.34+5.67j", "187004.11273906-131589.323796073j" -"-12.34E-5+6.78E9i", "1.79747131321615E+308+1.79747131321615E+308i" -"3.5+2.5i", "-26.5302329126575+19.8186755366902i" -"3.5+i", "17.8923550531471+27.8656919720394i" -"3.5", "33.1154519586923" -"3.5-i", "17.8923550531471-27.8656919720394i" -"3.5-2.5i", "-26.5302329126575-19.8186755366902i" -"1+2.5i", "-2.17773413212721+1.62681595415671i" -"1+i", "1.46869393991589+2.28735528717884i" -"1", "2.71828182845905" -"1-i", "1.46869393991589-2.28735528717884i" -"1-2.5i", "-2.17773413212721-1.62681595415671i" -"2.5i", "-0.801143615546934+0.598472144103957i" -"i", "0.54030230586814+0.841470984807897i" -"0", "1" -"-i", "0.54030230586814-0.841470984807897i" -"-2.5i", "-0.801143615546934-0.598472144103957i" -"-1+2.5i", "-0.294724265585475+0.220165597929638i" -"-1+i", "0.198766110346413+0.309559875653112i" -"-1", "0.367879441171442" -"-1-i", "0.198766110346413-0.309559875653112i" -"-1-2.5i", "-0.294724265585475-0.220165597929638i" -"-3.5+2.5i", "-0.0241924409350133+0.0180722928030842i" -"-3.5+i", "0.016315715894263+0.025410221967i" -"-3.5", "0.0301973834223185" -"-3.5-i", "0.016315715894263-0.025410221967i" -"-3.5-2.5i", "-0.0241924409350133-0.0180722928030842i" +"12.34+5.67j", "187004.11273906-131589.323796073j" +"-12.34E-5+6.78E9i", "0.519482808316086+0.85433649244115i" +"3.5+2.5i", "-26.5302329126575+19.8186755366902i" +"3.5+i", "17.8923550531471+27.8656919720394i" +"3.5", "33.1154519586923" +"3.5-i", "17.8923550531471-27.8656919720394i" +"3.5-2.5i", "-26.5302329126575-19.8186755366902i" +"1+2.5i", "-2.17773413212721+1.62681595415671i" +"1+i", "1.46869393991589+2.28735528717884i" +"1", "2.71828182845905" +"1-i", "1.46869393991589-2.28735528717884i" +"1-2.5i", "-2.17773413212721-1.62681595415671i" +"2.5i", "-0.801143615546934+0.598472144103957i" +"i", "0.54030230586814+0.841470984807897i" +"0", "1" +"-i", "0.54030230586814-0.841470984807897i" +"-2.5i", "-0.801143615546934-0.598472144103957i" +"-1+2.5i", "-0.294724265585475+0.220165597929638i" +"-1+i", "0.198766110346413+0.309559875653112i" +"-1", "0.367879441171442" +"-1-i", "0.198766110346413-0.309559875653112i" +"-1-2.5i", "-0.294724265585475-0.220165597929638i" +"-3.5+2.5i", "-0.0241924409350133+0.0180722928030842i" +"-3.5+i", "0.016315715894263+0.025410221967i" +"-3.5", "0.0301973834223185" +"-3.5-i", "0.016315715894263-0.025410221967i" +"-3.5-2.5i", "-0.0241924409350133-0.0180722928030842i"