Add more tests & rename 'Invalid' -> 'Unfinished'

This commit is contained in:
KtorZ
2024-01-20 10:26:33 +01:00
parent cb6fd59dbd
commit bf96c3afd2
12 changed files with 293 additions and 11 deletions

View File

@@ -0,0 +1,41 @@
test foo_1() {
let a = {
let b = 42
b
}
a == 42
}
test foo_2() {
expect Some(a) = {
let b = 42
Some(b)
}
a == 42
}
test foo_3() {
let c = Some(42)
let a = {
expect Some(b) = c
b
}
a == 42
}
test foo_4() {
let a = {
let b = 2
let c = {
let d = 14
d * b
}
c + 14
}
a == 42
}