fix: rename test module to tests

This commit is contained in:
rvcas
2022-12-23 21:53:59 -05:00
committed by Lucas
parent 01f2142606
commit 0d0536f6c1
33 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
pub fn unzip(xs: List<#(a, b)>) -> #(List<a>, List<b>) {
when xs is {
[] -> #([], [])
[#(a, b), ..rest] -> {
let #(a_tail, b_tail) = unzip(rest)
#([a, ..a_tail], [b, ..b_tail])
}
}
}
test unzip_1() {
unzip([#(1, "a"), #(2, "b")]) == #([1, 2], ["a", "b"])
}