mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-22 03:23:44 +00:00
ec4098c8fd
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.
22 lines
555 B
PHP
22 lines
555 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
|
|
|
|
return [
|
|
['751', '1357'],
|
|
['166', '246'],
|
|
['5349', '12345'],
|
|
[ExcelError::NAN(), '123.45'],
|
|
['0', '0'],
|
|
[ExcelError::VALUE(), true],
|
|
[ExcelError::VALUE(), false],
|
|
[ExcelError::NAN(), '3579'],
|
|
['44', '54'],
|
|
['-165', '7777777533'], // 2's Complement
|
|
[ExcelError::NAN(), '37777777770'], // too many digits
|
|
['536870911', '3777777777'], // highest positive
|
|
['-536870912', '4000000000'], // lowest negative
|
|
];
|