add one more test

This commit is contained in:
microproofs 2024-03-08 12:25:26 -05:00
parent 64f580bb82
commit c906501836
1 changed files with 11 additions and 0 deletions

View File

@ -22,3 +22,14 @@ test opaque_destructure() {
quantity_a > 2
}
test opaque_destructure2() {
let x = Value { inner: Dict { inner: [(#"", Dict { inner: [("ab", 3)] })] } }
when x |> to_dict() |> to_list() is {
[] -> fail
[(policy_a, Dict{inner: []}), ..] -> fail
[(policy_a, Dict{inner: [(asset_name_a, quantity_a), ..]}), ..] ->
quantity_a > 2
}
}