From f1454bbbd13a71da2005ff789cde2da0e9eb81f6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 22 Jan 2026 15:03:12 +0800 Subject: Adding tests. --- spec/inputs/test/destructure_spec.yue | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 spec/inputs/test/destructure_spec.yue (limited to 'spec/inputs/test/destructure_spec.yue') diff --git a/spec/inputs/test/destructure_spec.yue b/spec/inputs/test/destructure_spec.yue new file mode 100644 index 0000000..802774c --- /dev/null +++ b/spec/inputs/test/destructure_spec.yue @@ -0,0 +1,5 @@ +describe "destructure", -> + it "defaults and nested", -> + t = { a: 1, b: { c: 3 }, d: nil } + {:a, b: {:c, :d = 4}, :e = 5} = t + assert.same {a, c, d, e}, {1, 3, 4, 5} -- cgit v1.2.3-55-g6feb