diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/switch.yue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/inputs/switch.yue b/spec/inputs/switch.yue index cb1eb31..49d47f3 100644 --- a/spec/inputs/switch.yue +++ b/spec/inputs/switch.yue | |||
| @@ -159,5 +159,11 @@ do | |||
| 159 | when {x: <>: mt} | 159 | when {x: <>: mt} |
| 160 | print mt | 160 | print mt |
| 161 | 161 | ||
| 162 | do | ||
| 163 | switch tb | ||
| 164 | when [ [item,],] | ||
| 165 | print item | ||
| 166 | when [a = 1, b = "abc"] | ||
| 167 | print a, b | ||
| 162 | nil | 168 | nil |
| 163 | 169 | ||
