rename examples/tests/{a,b,c,d,e,f} into examples/acceptance_tests/00{1,2,3,4,5,6}

Also added a little Makefile to run them all in one go.
This commit is contained in:
KtorZ
2022-12-13 14:09:17 +01:00
parent b294063097
commit a62fb1905e
20 changed files with 25 additions and 16 deletions

View File

@@ -0,0 +1,2 @@
name = "acceptance_test_001"
version = "0.0.0"

View File

@@ -0,0 +1,14 @@
pub fn length(xs: List<a>) -> Int {
when xs is {
[] -> 0
[_, ..rest] -> 1 + length(rest)
}
}
test length_1() {
length([1, 2, 3]) == 3
}
test length_2() {
length([]) == 0
}