mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-20 15:16:36 +00:00
Additional Gnumeric Reader array formula unit tests
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user