Add new acceptance test scenario: 057
``` Error: × Main thread panicked. ├─▶ at crates/aiken-lang/src/uplc.rs:4286:48 ╰─▶ called `Option::unwrap()` on a `None` value ```
This commit is contained in:
parent
1c9540ec87
commit
2bda581fbd
|
@ -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_057"
|
||||
version = "0.0.0"
|
||||
dependencies = []
|
|
@ -0,0 +1,12 @@
|
|||
pub fn alt(left: Option<a>, right: Option<a>) -> Option<a> {
|
||||
when (left, right) is {
|
||||
(Some(a), Some(_)) -> Some(a)
|
||||
(None, Some(a)) -> Some(a)
|
||||
(Some(a), None) -> Some(a)
|
||||
(None, None) -> None
|
||||
}
|
||||
}
|
||||
|
||||
test foo() {
|
||||
Some(1) == alt(Some(1), Some(2))
|
||||
}
|
Loading…
Reference in New Issue