Add new acceptance test scenario 045

Error:
    × Main thread panicked.
    ├─▶ at crates/aiken-lang/src/uplc.rs:3435:48
    ╰─▶ called `Option::unwrap()` on a `None` value
This commit is contained in:
KtorZ
2023-01-18 16:28:44 +01:00
parent 071dc00624
commit 6e64bb72e6
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
fn fibonnaci(n) {
if n == 0 {
0
} else if n == 1 {
1
} else {
fibonnaci(n - 2) + fibonnaci(n - 1)
}
}
test foo() {
let right = fn() { fibonnaci(15) == 610 }
let left = False
left || right()
}