Files
PhpSpreadsheet/tests/data/Calculation/TextData/CONCATENATE.php
T
oleibman 5b18dcf04d Shot Myself in Foot
PR #4073 adds parsing of formulas for `$cell->setValue()`, but the spill operator won't parse correctly, breaking some of this PR. Add code to avoid that problem.
2024-07-07 21:49:07 -07:00

40 lines
703 B
PHP

<?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Cell\DataType;
return [
/*[
'ABCDEFGHIJ',
'ABCDE',
'FGHIJ',
],
[
'123',
1,
2,
3,
],
[
'Boolean-TRUE',
'Boolean',
'-',
true,
],
'no arguments' => ['exception'],
'result just fits' => [
// Note use Armenian character below to make sure chars, not bytes
str_repeat('Ԁ', DataType::MAX_STRING_LENGTH - 5) . 'ABCDE',
'A3',
'ABCDE',
],
'result too long' => [
'#CALC!',
'A3',
'abc',
'def',
],*/
'propagate DIV0' => ['#DIV/0!', '1', 'A2', '3'],
];