Add new acceptance test scenario (013)

```
  ERROR:
  The provided Plutus code called 'error'
  ```
This commit is contained in:
KtorZ 2022-12-13 23:02:49 +01:00
parent 9c902cdf89
commit bc7c236b3b
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -0,0 +1,13 @@
pub fn unzip(xs: List<#(a, b)>) -> #(List<a>, List<b>) {
when xs is {
[] -> #([], [])
[#(a, b), ..rest] -> {
let #(a_tail, b_tail) = unzip(rest)
#([a, ..a_tail], [b, ..b_tail])
}
}
}
test unzip_1() {
unzip([#(1, "a"), #(2, "b")]) == #([1, 2], ["a", "b"])
}