diff options
author | Li Jin <dragon-fly@qq.com> | 2020-09-17 09:48:18 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-09-17 09:48:18 +0800 |
commit | ff3b6e12ef85595a4f0c41ab361a8b806c0ac893 (patch) | |
tree | 9b5a41683c9bb3bed98163e65d1114b464d7910f /spec | |
parent | 5440c952f2c73da6fa6a752d8628eaf25015c070 (diff) | |
download | yuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.tar.gz yuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.tar.bz2 yuescript-ff3b6e12ef85595a4f0c41ab361a8b806c0ac893.zip |
add test cases.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/syntax.moon | 14 |
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 | ||
249 | another hello, one, | ||
250 | two, three, four, | ||
251 | yeah: man, okay: yeah | ||
252 | * fine: alright, | ||
253 | okay: 1 | ||
254 | * fine: alright, | ||
255 | okay: 2 | ||
256 | |||
249 | another hello, one, two, three, four, | 257 | another 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, | |||
253 | another hello, one, two, three, four, yeah: man | 261 | another hello, one, two, three, four, yeah: man |
254 | okay: yeah | 262 | okay: yeah |
255 | 263 | ||
264 | ajax url, | ||
265 | (data) -> | ||
266 | process data, | ||
267 | (error) -> | ||
268 | print error | ||
269 | |||
256 | -- | 270 | -- |
257 | a += 3 - 5 | 271 | a += 3 - 5 |
258 | a *= 3 + 5 | 272 | a *= 3 + 5 |