fix: rename test module to tests
This commit is contained in:
10
examples/acceptance_tests/011/lib/tests.ak
Normal file
10
examples/acceptance_tests/011/lib/tests.ak
Normal file
@@ -0,0 +1,10 @@
|
||||
pub fn map(xs: List<a>, f: fn(a) -> result) -> List<result> {
|
||||
when xs is {
|
||||
[] -> []
|
||||
[x, ..rest] -> [f(x), ..map(rest, f)]
|
||||
}
|
||||
}
|
||||
|
||||
test map_1() {
|
||||
map([], fn(n) { n + 1 }) == []
|
||||
}
|
||||
Reference in New Issue
Block a user