Files
PhpSpreadsheet/tests/data/Calculation/MathTrig/SUMLITERALS.php
T
Jacek dd97b8fed1 Fixed inconsistent string handling in SUM() implementations, issue #3652 (#3653)
* Fixed inconsistent string handling in SUM() implementations

* Use assertEqual instead of assertSame to allow ints and floats with the
same value

* Removewd special handling of empty strings and use default casts

* Eliminate Phpstan errors

* More Test Cases

* More New Tests

---------

Co-authored-by: oleibman <10341515+oleibman@users.noreply.github.com>
2023-08-15 09:24:45 -07:00

15 lines
440 B
PHP

<?php
return [
[50, '5, 15, 30'],
[52, '5, 15, 30, 2'],
[53.1, '5.7, 15, 30, 2.4'],
[52.1, '5.7, "14", 30, 2.4'],
[52.2, '5.7, "14.1", 30, 2.4'],
['#VALUE!', '5.7, "X", 30, 2.4'], // error if entered in formula, but not in cell
['#VALUE!', '5.7, "", 30, 2.4'], // error if entered in formula, but not in cell
[38.1, '5.7, , 30, 2.4'],
[38.1, '5.7, false, 30, 2.4'],
[39.1, '5.7, true, 30, 2.4'],
];