1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-04 23:27:15 +03:00
nickel/tests/destructuring/mixed.ncl
francois-caddet f435a22d76 add successfull tests of destructuring
NOTE: new dev dependancy (duplicate) to avoid duplication of code in the test suite.  Check `tests/destructuring.rs` for an example.
2021-11-22 11:25:58 +01:00

5 lines
180 B
Plaintext

let baz = 10 in
let x @ {foo ? 10, b = xb, d ? baz = bar, c = xc @ {ca, ..}, ..y} = {a = 2, b = 3, c = {ca = 22, cb = 0}} in
y.a + x.b - xb + x.c.ca - xc.ca - ca + foo + bar == 0