Skip to content

Commit 450c6ea

Browse files
committed
Fix unit tests for IMEXP() function
The expected value were incorrect according to LibreOffice 5 and wolframalpha.com.
1 parent ee08caf commit 450c6ea

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

unitTests/Classes/src/Calculation/EngineeringTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public function providerIMDIV()
228228

229229
/**
230230
* @dataProvider providerIMEXP
231-
* @group fail19
232231
*/
233232
public function testIMEXP()
234233
{
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
"12.34+5.67j", "187004.11273906-131589.323796073j"
2-
"-12.34E-5+6.78E9i", "1.79747131321615E+308+1.79747131321615E+308i"
3-
"3.5+2.5i", "-26.5302329126575+19.8186755366902i"
4-
"3.5+i", "17.8923550531471+27.8656919720394i"
5-
"3.5", "33.1154519586923"
6-
"3.5-i", "17.8923550531471-27.8656919720394i"
7-
"3.5-2.5i", "-26.5302329126575-19.8186755366902i"
8-
"1+2.5i", "-2.17773413212721+1.62681595415671i"
9-
"1+i", "1.46869393991589+2.28735528717884i"
10-
"1", "2.71828182845905"
11-
"1-i", "1.46869393991589-2.28735528717884i"
12-
"1-2.5i", "-2.17773413212721-1.62681595415671i"
13-
"2.5i", "-0.801143615546934+0.598472144103957i"
14-
"i", "0.54030230586814+0.841470984807897i"
15-
"0", "1"
16-
"-i", "0.54030230586814-0.841470984807897i"
17-
"-2.5i", "-0.801143615546934-0.598472144103957i"
18-
"-1+2.5i", "-0.294724265585475+0.220165597929638i"
19-
"-1+i", "0.198766110346413+0.309559875653112i"
20-
"-1", "0.367879441171442"
21-
"-1-i", "0.198766110346413-0.309559875653112i"
22-
"-1-2.5i", "-0.294724265585475-0.220165597929638i"
23-
"-3.5+2.5i", "-0.0241924409350133+0.0180722928030842i"
24-
"-3.5+i", "0.016315715894263+0.025410221967i"
25-
"-3.5", "0.0301973834223185"
26-
"-3.5-i", "0.016315715894263-0.025410221967i"
27-
"-3.5-2.5i", "-0.0241924409350133-0.0180722928030842i"
1+
"12.34+5.67j", "187004.11273906-131589.323796073j"
2+
"-12.34E-5+6.78E9i", "0.519482808316086+0.85433649244115i"
3+
"3.5+2.5i", "-26.5302329126575+19.8186755366902i"
4+
"3.5+i", "17.8923550531471+27.8656919720394i"
5+
"3.5", "33.1154519586923"
6+
"3.5-i", "17.8923550531471-27.8656919720394i"
7+
"3.5-2.5i", "-26.5302329126575-19.8186755366902i"
8+
"1+2.5i", "-2.17773413212721+1.62681595415671i"
9+
"1+i", "1.46869393991589+2.28735528717884i"
10+
"1", "2.71828182845905"
11+
"1-i", "1.46869393991589-2.28735528717884i"
12+
"1-2.5i", "-2.17773413212721-1.62681595415671i"
13+
"2.5i", "-0.801143615546934+0.598472144103957i"
14+
"i", "0.54030230586814+0.841470984807897i"
15+
"0", "1"
16+
"-i", "0.54030230586814-0.841470984807897i"
17+
"-2.5i", "-0.801143615546934-0.598472144103957i"
18+
"-1+2.5i", "-0.294724265585475+0.220165597929638i"
19+
"-1+i", "0.198766110346413+0.309559875653112i"
20+
"-1", "0.367879441171442"
21+
"-1-i", "0.198766110346413-0.309559875653112i"
22+
"-1-2.5i", "-0.294724265585475-0.220165597929638i"
23+
"-3.5+2.5i", "-0.0241924409350133+0.0180722928030842i"
24+
"-3.5+i", "0.016315715894263+0.025410221967i"
25+
"-3.5", "0.0301973834223185"
26+
"-3.5-i", "0.016315715894263-0.025410221967i"
27+
"-3.5-2.5i", "-0.0241924409350133-0.0180722928030842i"

0 commit comments

Comments
 (0)