Files
PhpSpreadsheet/tests/data/Calculation/TextData/REPT.php
T
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

21 lines
562 B
PHP

<?php
declare(strict_types=1);
return [
'no arguments' => ['exception'],
'one argument' => ['exception', 'ABC'],
['#VALUE!', 'ABC', 'DEF'],
['ABCABCABC', 'ABC', 3],
['ABCABC', 'ABC', 2.2],
['', 'ABC', 0],
['TRUETRUE', true, 2],
['111', 1, 3],
['δύο δύο ', 'δύο ', 2],
['#VALUE!', 'ABC', -1],
'result too long' => ['#VALUE!', 'A', 32768],
'result just fits' => [str_repeat('A', 32767), 'A', 32767],
'propagate NUM' => ['#NUM!', '=SQRT(-1)', 5],
'propagate REF' => ['#REF!', '=sheet99!A1', 5],
];