diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/tables.yue | 18 | ||||
| -rw-r--r-- | spec/inputs/with.yue | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue index 0de8a8c..702e04a 100644 --- a/spec/inputs/tables.yue +++ b/spec/inputs/tables.yue | |||
| @@ -245,6 +245,24 @@ menus = | |||
| 245 | click: -> | 245 | click: -> |
| 246 | } | 246 | } |
| 247 | 247 | ||
| 248 | _ = | ||
| 249 | boolean: | ||
| 250 | - true | ||
| 251 | - false | ||
| 252 | float: | ||
| 253 | - 3.14 | ||
| 254 | - -6.8523015e+5 | ||
| 255 | int: | ||
| 256 | - 123 | ||
| 257 | - -0b1010_0111_0100_1010_1110 | ||
| 258 | null: | ||
| 259 | nodeName: 'node' | ||
| 260 | parent: nil | ||
| 261 | string: | ||
| 262 | - 'Hello world' | ||
| 263 | - "newline | ||
| 264 | newline2" | ||
| 265 | |||
| 248 | tb = {...other} | 266 | tb = {...other} |
| 249 | 267 | ||
| 250 | tbMix = { | 268 | tbMix = { |
diff --git a/spec/inputs/with.yue b/spec/inputs/with.yue index 3fee48e..dcd4053 100644 --- a/spec/inputs/with.yue +++ b/spec/inputs/with.yue | |||
| @@ -161,4 +161,8 @@ do | |||
| 161 | if .v | 161 | if .v |
| 162 | break .a | 162 | break .a |
| 163 | 163 | ||
| 164 | a = while true | ||
| 165 | break with? tb | ||
| 166 | break 1 | ||
| 167 | |||
| 164 | nil | 168 | nil |
