fix: multiple list cases of the same length weren't being handled
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user