957cb62dab
This had been intended to get 100% coverage for TextData functions, and it does that. However, some minor bugs requiring source changes arose during testing. - the Excel CHAR function restricts its argument to 1-255. PhpSpreadsheet CHARACTER had been allowing 0+. Also, there is no need to test if iconv exists, since it is part of Composer requirements. - The DOLLAR function had been returning NUM for invalid arguments. Excel returns VALUE. Also, negative amounts were not being handled correctly. - The FIXEDFORMAT function had been returning NUM for invalid arguments. Excel FIXED returns VALUE.
68 lines
755 B
PHP
68 lines
755 B
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
3,
|
|
'E',
|
|
'QWERTYUIOP',
|
|
],
|
|
[
|
|
4,
|
|
'D',
|
|
'ABCDEFGHI',
|
|
],
|
|
[
|
|
4,
|
|
'E',
|
|
true,
|
|
],
|
|
[
|
|
5,
|
|
'E',
|
|
false,
|
|
],
|
|
[
|
|
2,
|
|
'A',
|
|
'Mark Baker',
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'C',
|
|
'Mark Baker',
|
|
],
|
|
[
|
|
7,
|
|
'A',
|
|
'Mark Baker',
|
|
3,
|
|
],
|
|
[
|
|
4,
|
|
'K',
|
|
'Mark Baker',
|
|
],
|
|
[
|
|
8,
|
|
'K',
|
|
'Mark Baker',
|
|
5,
|
|
],
|
|
[
|
|
2,
|
|
'A',
|
|
'Mark Baker',
|
|
2,
|
|
],
|
|
[
|
|
1,
|
|
'',
|
|
'Mark Baker',
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'BITE',
|
|
'BIT',
|
|
],
|
|
];
|