diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/existential.moon | 4 | ||||
-rw-r--r-- | spec/inputs/loops.moon | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/spec/inputs/existential.moon b/spec/inputs/existential.moon index 7ee3bde..3055705 100644 --- a/spec/inputs/existential.moon +++ b/spec/inputs/existential.moon | |||
@@ -45,3 +45,7 @@ a = tb1?\end? 123 + tb2?\then 456 | |||
45 | 45 | ||
46 | b = tb1?\end? or tb2?\then | 46 | b = tb1?\end? or tb2?\then |
47 | 47 | ||
48 | with? io.open "test.txt", "w" | ||
49 | \write "hello" | ||
50 | \close! | ||
51 | |||
diff --git a/spec/inputs/loops.moon b/spec/inputs/loops.moon index 35427f6..24d960f 100644 --- a/spec/inputs/loops.moon +++ b/spec/inputs/loops.moon | |||
@@ -91,6 +91,15 @@ while true | |||
91 | break if true | 91 | break if true |
92 | print "no" | 92 | print "no" |
93 | 93 | ||
94 | a = 1 | ||
95 | repeat | ||
96 | a += 1 | ||
97 | if a == 5 | ||
98 | continue | ||
99 | if a == 6 | ||
100 | break | ||
101 | print a | ||
102 | until a == 10 | ||
94 | 103 | ||
95 | for x=1,10 | 104 | for x=1,10 |
96 | continue if x > 3 and x < 7 | 105 | continue if x > 3 and x < 7 |