Files
PhpSpreadsheet/tests/data/CellExtractAllCellReferencesInRange.php
T
MarkBaker 0171709e7f The sortCellReferenceArray() in Coordinate should have returned cells ordered by row, then by column... but instead sorted by column, then row.
Fixed that bug, using a slightly faster algorithm for the sort index than the simple fix would have used, and modified the tests that didn't have the correct expected result :-(
2022-04-28 17:43:01 +02:00

134 lines
2.0 KiB
PHP

<?php
return [
[
[
'B4',
'B5',
'B6',
],
'B4:B6',
],
[
[
'B4',
'D4',
'B5',
'D5',
'B6',
'D6',
],
'B4:B6,D4:D6',
],
[
[
],
'B4:B6 D4:D6',
],
[
[
'B4',
'C4',
'D4',
'B5',
'C5',
'D5',
'B6',
'C6',
'D6',
],
'B4:D6',
],
[
[
'B4',
'C4',
'D4',
'B5',
'C5',
'D5',
'E5',
'B6',
'C6',
'D6',
'E6',
'C7',
'D7',
'E7',
],
'B4:D6,C5:E7',
],
[
[
'C5',
'D5',
'C6',
'D6',
],
'B4:D6 C5:E7',
],
[
[
'B2',
'C2',
'D2',
'B3',
'C3',
'D3',
'E3',
'B4',
'C4',
'D4',
'E4',
'F4',
'C5',
'D5',
'E5',
'F5',
'D6',
'E6',
'F6',
],
'B2:D4,C5:D5,E3:E5,D6:E6,F4:F6',
],
[
[
'B2',
'C2',
'D2',
'B3',
'C3',
'D3',
'E3',
'B4',
'C4',
'D4',
'E4',
'F4',
'C5',
'D5',
'E5',
'F5',
'D6',
'E6',
'F6',
],
'B2:D4,C3:E5,D4:F6',
],
[
[
'B5',
],
'B4:B6 B5',
],
[
[
'Z2',
'AA2',
'Z3',
'AA3',
],
'Z2:AA3',
],
];