Files
Adrien Crivelli ec4098c8fd Strict mode for all tests
While we might never be able to have 100% of our code strict, we can at
the very least do it for all of our tests. This ensures that our tests
are using our API with the types as intended by the test author, and not
silently be cast to what our API requires.
2023-09-07 17:44:56 +08:00

126 lines
2.5 KiB
PHP

<?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
[['Hello', 'World']],
[
'Hello World',
' ',
'',
],
],
[
[['Hello'], ['World']],
[
'Hello World',
'',
' ',
],
],
[
[['To', 'be', 'or', 'not', 'to', 'be']],
[
'To be or not to be',
' ',
'',
],
],
[
[
['1', '2', '3'],
['4', '5', '6'],
],
[
'1,2,3;4,5,6',
',',
';',
],
],
[
[
['Do', ' Or do not', ' There is no try', ' ', 'Anonymous'],
],
[
'Do. Or do not. There is no try. -Anonymous',
['.', '-'],
'',
],
],
[
[['Do'], [' Or do not'], [' There is no try'], [' '], ['Anonymous']],
[
'Do. Or do not. There is no try. -Anonymous',
'',
['.', '-'],
],
],
[
[
['Do', ' Or do not', ' There is no try', ' '],
['Anonymous', ExcelError::NA(), ExcelError::NA(), ExcelError::NA()],
],
[
'Do. Or do not. There is no try. -Anonymous',
'.',
'-',
],
],
[
[
['', '', '1'],
['', '', ExcelError::NA()],
['', '2', ''],
['3', ExcelError::NA(), ExcelError::NA()],
['', ExcelError::NA(), ExcelError::NA()],
['', '4', ExcelError::NA()],
],
[
'--1|-|-2-|3||-4',
'-',
'|',
],
],
[
[
['1'],
['2'],
['3'],
['4'],
],
[
'--1|-|-2-|3||-4',
'-',
'|',
true,
],
],
[
[['', 'BCD', 'FGH', 'JKLMN', 'PQRST', 'VWXYZ']],
[
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
['A', 'E', 'I', 'O', 'U'],
'',
],
],
'slash as column delimiter' => [
[['Hello', 'World']],
[
'Hello/World',
'/',
'',
],
],
'slash as row delimiter' => [
[['ho', 'w'], ['about', '#N/A'], ['t', 'hat']],
[
'ho.w/about/t.hat',
'.',
'/',
],
],
];