diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-11-03 15:04:22 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-11-03 15:04:22 +0800 |
| commit | f641df51ecec17dbd24b476e271a4ee49ed6aded (patch) | |
| tree | f0a83f650a45037d33057dc913ca24ce04986dd3 /spec/inputs | |
| parent | e07a2eb9c389f27103872a3b5a5bfe500d0c2d62 (diff) | |
| download | yuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.tar.gz yuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.tar.bz2 yuescript-f641df51ecec17dbd24b476e271a4ee49ed6aded.zip | |
fix issue #30
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/tables.mp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/inputs/tables.mp b/spec/inputs/tables.mp index e816003..2c6dff9 100644 --- a/spec/inputs/tables.mp +++ b/spec/inputs/tables.mp | |||
| @@ -203,5 +203,21 @@ items = | |||
| 203 | * [i for i = 1, 3] | 203 | * [i for i = 1, 3] |
| 204 | * "#{if a then b}" | 204 | * "#{if a then b}" |
| 205 | 205 | ||
| 206 | pairs = | ||
| 207 | * | ||
| 208 | * "king" | ||
| 209 | * "queen" | ||
| 210 | * | ||
| 211 | * "hero" | ||
| 212 | * "princess" | ||
| 213 | |||
| 214 | items = | ||
| 215 | * | ||
| 216 | name: "ring" | ||
| 217 | amount: 2 | ||
| 218 | * | ||
| 219 | name: "necklace" | ||
| 220 | amount: 1 | ||
| 221 | |||
| 206 | nil | 222 | nil |
| 207 | 223 | ||
