aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/cond.moon
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/cond.moon')
-rw-r--r--spec/inputs/cond.moon104
1 files changed, 52 insertions, 52 deletions
diff --git a/spec/inputs/cond.moon b/spec/inputs/cond.moon
index e8b6283..3dee99b 100644
--- a/spec/inputs/cond.moon
+++ b/spec/inputs/cond.moon
@@ -2,24 +2,24 @@
2you_cool = false 2you_cool = false
3 3
4_ = if cool 4_ = if cool
5 if you_cool 5 if you_cool
6 one 6 one
7 else if eatdic 7 else if eatdic
8 yeah 8 yeah
9 else 9 else
10 _ = two 10 _ = two
11 three 11 three
12else 12else
13 no 13 no
14 14
15_ = if cool then no 15_ = if cool then no
16_ = if cool then no else yes 16_ = if cool then no else yes
17 17
18if cool then wow cool else 18if cool then wow cool else
19 noso cool 19 noso cool
20 20
21if working 21if working
22 _ = if cool then if cool then okay else what else nah 22 _ = if cool then if cool then okay else what else nah
23 23
24 24
25if yeah then no day elseif cool me then okay ya else u way 25if yeah then no day elseif cool me then okay ya else u way
@@ -29,117 +29,117 @@ if yeah then no dad else if cool you then okay bah else p way
29if (->)() then what ever 29if (->)() then what ever
30 30
31if nil then flip me else 31if nil then flip me else
32 it be,rad 32 it be,rad
33 33
34 34
35if things great then no way elseif okay sure 35if things great then no way elseif okay sure
36 what here 36 what here
37 37
38 38
39if things then no chance 39if things then no chance
40elseif okay 40elseif okay
41 what now 41 what now
42 42
43 43
44if things 44if things
45 yes man 45 yes man
46elseif okay person then hi there else hmm sure 46elseif okay person then hi there else hmm sure
47 47
48if lets go 48if lets go
49 print "greetings" 49 print "greetings"
50elseif "just us" 50elseif "just us"
51 print "will smith" else show 5555555 51 print "will smith" else show 5555555
52 52
53-- 53--
54 54
55if something = 10 55if something = 10
56 print something 56 print something
57else 57else
58 print "else" 58 print "else"
59 59
60hello = if something = 10 60hello = if something = 10
61 print something 61 print something
62else 62else
63 print "else" 63 print "else"
64 64
65 65
66hello = 5 + if something = 10 66hello = 5 + if something = 10
67 print something 67 print something
68 68
69--- 69---
70 70
71z = false 71z = false
72 72
73_ = if false 73_ = if false
74 one 74 one
75elseif x = true 75elseif x = true
76 two 76 two
77elseif z = true 77elseif z = true
78 three 78 three
79else 79else
80 four 80 four
81 81
82 82
83out = if false 83out = if false
84 one 84 one
85elseif x = true 85elseif x = true
86 two 86 two
87elseif z = true 87elseif z = true
88 three 88 three
89else 89else
90 four 90 four
91 91
92kzy = -> 92kzy = ->
93 if something = true 93 if something = true
94 1 94 1
95 elseif another = false 95 elseif another = false
96 2 96 2
97 97
98--- 98---
99 99
100unless true 100unless true
101 print "cool!" 101 print "cool!"
102 102
103unless true and false 103unless true and false
104 print "cool!" 104 print "cool!"
105 105
106unless false then print "cool!" 106unless false then print "cool!"
107unless false then print "cool!" else print "no way!" 107unless false then print "cool!" else print "no way!"
108 108
109unless nil 109unless nil
110 print "hello" 110 print "hello"
111else 111else
112 print "world" 112 print "world"
113 113
114-- 114--
115 115
116x = unless true 116x = unless true
117 print "cool!" 117 print "cool!"
118 118
119x = unless true and false 119x = unless true and false
120 print "cool!" 120 print "cool!"
121 121
122y = unless false then print "cool!" 122y = unless false then print "cool!"
123y = unless false then print "cool!" else print "no way!" 123y = unless false then print "cool!" else print "no way!"
124 124
125z = unless nil 125z = unless nil
126 print "hello" 126 print "hello"
127else 127else
128 print "world" 128 print "world"
129 129
130print unless true 130print unless true
131 print "cool!" 131 print "cool!"
132 132
133print unless true and false 133print unless true and false
134 print "cool!" 134 print "cool!"
135 135
136print unless false then print "cool!" 136print unless false then print "cool!"
137print unless false then print "cool!" else print "no way!" 137print unless false then print "cool!" else print "no way!"
138 138
139print unless nil 139print unless nil
140 print "hello" 140 print "hello"
141else 141else
142 print "world" 142 print "world"
143 143
144-- 144--
145 145
@@ -151,9 +151,9 @@ dddd = {1,2,3} unless value
151-- 151--
152 152
153do 153do
154 j = 100 154 j = 100
155 unless j = hi! 155 unless j = hi!
156 error "not j!" 156 error "not j!"
157 157
158---------------- 158----------------
159 159
@@ -165,8 +165,8 @@ a,c,b = "cool" if something
165--- 165---
166 166
167j = if 1 167j = if 1
168 if 2 168 if 2
169 3 169 3
170else 6 170else 6
171 171
172 172
@@ -174,10 +174,10 @@ m = if 1
174 174
175 175
176 176
177 if 2 177 if 2
178 178
179 179
180 3 180 3
181 181
182 182
183else 6 183else 6