Additional Gnumeric Reader array formula unit tests

This commit is contained in:
MarkBaker
2022-03-04 23:07:11 +01:00
parent 3dbc7ddd25
commit b67841a3dd
2 changed files with 7 additions and 1 deletions
@@ -34,7 +34,7 @@ class ArrayFormulaTest extends TestCase
$cell = $worksheet->getCell($cellAddress);
self::assertTrue($cell->isArrayFormula());
self::assertSame($expectedRange, $cell->arrayFormulaRange());
self::assertSame($expectedFormula, $cell->getValue());
self::assertSame($expectedFormula, strtoupper($cell->getValue()));
self::assertSame($expectedValue, $cell->getCalculatedValue(true, true));
// self::assertSame(8, $cell->getCalculatedValue());
// self::assertSame(8, $cell->getCalculatedValue());
@@ -52,6 +52,12 @@ class ArrayFormulaTest extends TestCase
'=A1:B1*A1:A2',
[[4, 6], [8, 12]],
],
[
'G1',
'G1:J1',
'=SIN({-1,0,1,2})',
[[-0.8414709848078965, 0.0, 0.8414709848078965, 0.9092974268256817]],
],
[
'D4',
'D4:E5',
Binary file not shown.