aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-09-17 09:48:18 +0800
committerLi Jin <dragon-fly@qq.com>2020-09-17 09:48:18 +0800
commitff3b6e12ef85595a4f0c41ab361a8b806c0ac893 (patch)
tree9b5a41683c9bb3bed98163e65d1114b464d7910f
parent5440c952f2c73da6fa6a752d8628eaf25015c070 (diff)
downloadyuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.tar.gz
yuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.tar.bz2
yuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.zip
add test cases.
-rw-r--r--spec/inputs/syntax.moon14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon
index 32d480e..af72f73 100644
--- a/spec/inputs/syntax.moon
+++ b/spec/inputs/syntax.moon
@@ -246,6 +246,14 @@ another hello, one,
246 okay: yeah 246 okay: yeah
247 fine: alright 247 fine: alright
248 248
249another hello, one,
250 two, three, four,
251 yeah: man, okay: yeah
252 * fine: alright,
253 okay: 1
254 * fine: alright,
255 okay: 2
256
249another hello, one, two, three, four, 257another hello, one, two, three, four,
250 yeah: man 258 yeah: man
251 okay: yeah 259 okay: yeah
@@ -253,6 +261,12 @@ another hello, one, two, three, four,
253another hello, one, two, three, four, yeah: man 261another hello, one, two, three, four, yeah: man
254 okay: yeah 262 okay: yeah
255 263
264ajax url,
265 (data) ->
266 process data,
267 (error) ->
268 print error
269
256-- 270--
257a += 3 - 5 271a += 3 - 5
258a *= 3 + 5 272a *= 3 + 5