diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
| commit | ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (patch) | |
| tree | 427e365939da39f31dbfa755675fb60bb141583d /spec/inputs/assign.moon | |
| parent | 4827d200604a086e2ad94edb4257c3abc7a3c4fc (diff) | |
| download | yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.gz yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.bz2 yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.zip | |
fix Moonscript issue 375.
Diffstat (limited to 'spec/inputs/assign.moon')
| -rw-r--r-- | spec/inputs/assign.moon | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/inputs/assign.moon b/spec/inputs/assign.moon index 3e66491..4e50147 100644 --- a/spec/inputs/assign.moon +++ b/spec/inputs/assign.moon | |||
| @@ -1,30 +1,30 @@ | |||
| 1 | 1 | ||
| 2 | _ = -> | 2 | _ = -> |
| 3 | joop = 2302 | 3 | joop = 2302 |
| 4 | 4 | ||
| 5 | (hi) -> | 5 | (hi) -> |
| 6 | d = 100 | 6 | d = 100 |
| 7 | hi = 1021 | 7 | hi = 1021 |
| 8 | 8 | ||
| 9 | a,b,c,d = 1,2,3,4 | 9 | a,b,c,d = 1,2,3,4 |
| 10 | 10 | ||
| 11 | hello[232], (5+5)[121], hello, x[99] = 100, 200, 300 | 11 | hello[232], (5+5)[121], hello, x[99] = 100, 200, 300 |
| 12 | 12 | ||
| 13 | joop = 12 | 13 | joop = 12 |
| 14 | 14 | ||
| 15 | joop = 2345 | 15 | joop = 2345 |
| 16 | 16 | ||
| 17 | a, b = if hello | 17 | a, b = if hello |
| 18 | "hello" | 18 | "hello" |
| 19 | else | 19 | else |
| 20 | "nothing", "yeah" | 20 | "nothing", "yeah" |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | a, b = if hello | 23 | a, b = if hello |
| 24 | if yeah then "one", "two" else "mmhh" | 24 | if yeah then "one", "two" else "mmhh" |
| 25 | else | 25 | else |
| 26 | print "the other" | 26 | print "the other" |
| 27 | "nothing", "yeah" | 27 | "nothing", "yeah" |
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | 30 | ||
