fix: multiple list cases of the same length weren't being handled

This commit is contained in:
Kasey White
2023-01-21 16:10:26 -05:00
committed by Lucas
parent a178cee7bf
commit e36f91c39c
4 changed files with 66 additions and 26 deletions

View File

@@ -1,9 +1,9 @@
test sort_by_1() {
let xs = [[4, 3, 2, 1], [2, 3, 4, 5]]
when xs is {
[[], ys] -> True
[xs, []] -> True
[[], ys] -> False
[xs, []] -> False
[[x, ..xs2], [y, ..ys2]] -> True
_ -> True
_ -> False
}
}