Commit 4b49ad1
test(trashbin): fix version-sort expectation and add empty-result case
The first assertion in testGetVersionsFromTrash() expected
['1', '10', '2'], but sort() uses SORT_REGULAR and sorts the numeric
version strings numerically -> ['1', '2', '10'], so the test failed.
Correct the expected order and add a case asserting an empty result for
a file that has no stored versions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>1 parent f30144b commit 4b49ad1
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| 959 | + | |
959 | 960 | | |
960 | 961 | | |
961 | 962 | | |
962 | | - | |
| 963 | + | |
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
| |||
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
971 | 977 | | |
972 | 978 | | |
973 | 979 | | |
| |||
0 commit comments