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:
parent
071dc00624
commit
6e64bb72e6
|
@ -0,0 +1,5 @@
|
|||
# This file was generated by Aiken
|
||||
# You typically do not need to edit this file
|
||||
|
||||
requirements = []
|
||||
packages = []
|
|
@ -0,0 +1,3 @@
|
|||
name = 'aiken-lang/acceptance_test_045'
|
||||
version = '0.0.0'
|
||||
description = ''
|
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue