Add some tests that make the compiler panick.

This commit is contained in:
KtorZ
2022-12-09 18:47:21 +01:00
parent 95986fed83
commit 04c05f8d63
6 changed files with 45 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,11 @@
pub fn repeat(x: a, n: Int) -> List(a) {
if n <= 0 {
[]
} else {
[x, ..repeat(x, n - 1)]
}
}
test repeat_1() {
repeat("aiken", 0) == []
}