Add new acceptance test scenario (011)

```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:4022:40
    ╰─▶ called `Option::unwrap()` on a `None` value
  ```
This commit is contained in:
KtorZ 2022-12-13 22:49:55 +01:00
parent 11c793dd2a
commit f53caff538
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -0,0 +1,10 @@
pub fn map(xs: List<a>, f: fn(a) -> result) -> List<result> {
when xs is {
[] -> []
[x, ..rest] -> [f(x), ..map(rest, f)]
}
}
test map_1() {
map([], fn(n) { n + 1 }) == []
}