add one more test
This commit is contained in:
parent
64f580bb82
commit
c906501836
|
@ -22,3 +22,14 @@ test opaque_destructure() {
|
||||||
|
|
||||||
quantity_a > 2
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue