Add new acceptance test scenario: 058

Doesn't like var patterns in list pattern-matching

  ```
  Error:
    × Main thread panicked.
    ├─▶ at crates/aiken-lang/src/uplc.rs:770:29
    ╰─▶ internal error: entered unreachable code
  ```
This commit is contained in:
KtorZ 2023-02-13 10:35:44 +01:00 committed by Kasey
parent d9cfad8f68
commit 23bf101e08
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# This file was generated by Aiken
# You typically do not need to edit this file
requirements = []
packages = []

View File

@ -0,0 +1,2 @@
name = "aiken-lang/acceptance_test_058"
version = "0.0.0"

View File

@ -0,0 +1,19 @@
fn whatever(_xs) {
True
}
test foo() {
let xs = [1, 2, 3]
when xs is {
[x] -> x == 1
_ -> whatever(xs)
}
}
test bar() {
let xs = [1, 2, 3]
when xs is {
[x] -> x == 1
ys -> whatever(ys)
}
}