From 33260af2175004347a3b9345b67727e596c6fffd Mon Sep 17 00:00:00 2001 From: Li Jin Date: Wed, 9 Aug 2023 08:56:58 +0800 Subject: add more tests. --- spec/inputs/vararg.yue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'spec/inputs') diff --git a/spec/inputs/vararg.yue b/spec/inputs/vararg.yue index 466a4a6..91d0b16 100644 --- a/spec/inputs/vararg.yue +++ b/spec/inputs/vararg.yue @@ -74,5 +74,23 @@ join = (...) -> a, ... = 1, 2 unless true print a, select '#', ... + do + ... = switch x when 1 + with tb + .x = 123 + else + tb2 + print ... + + do + ... = 1, 2, if cond + 3, 4, 5 + print ... + + do + tb, ... = + name: "abc" + value: 123 + print ... nil -- cgit v1.2.3-55-g6feb