diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/class.moon | 4 | ||||
-rw-r--r-- | spec/inputs/funcs.moon | 4 | ||||
-rw-r--r-- | spec/inputs/lists.moon | 2 | ||||
-rw-r--r-- | spec/inputs/using.moon | 3 |
4 files changed, 8 insertions, 5 deletions
diff --git a/spec/inputs/class.moon b/spec/inputs/class.moon index 2290bc7..60361ca 100644 --- a/spec/inputs/class.moon +++ b/spec/inputs/class.moon | |||
@@ -199,7 +199,7 @@ class Wowha extends Thing | |||
199 | super! | 199 | super! |
200 | _ = super.hello | 200 | _ = super.hello |
201 | super\hello! | 201 | super\hello! |
202 | _ = super\hello | 202 | super\hello |
203 | 203 | ||
204 | 204 | ||
205 | @zone: cool { | 205 | @zone: cool { |
@@ -207,7 +207,7 @@ class Wowha extends Thing | |||
207 | super! | 207 | super! |
208 | _ = super.hello | 208 | _ = super.hello |
209 | super\hello! | 209 | super\hello! |
210 | _ = super\hello | 210 | super\hello |
211 | } | 211 | } |
212 | 212 | ||
213 | nil | 213 | nil |
diff --git a/spec/inputs/funcs.moon b/spec/inputs/funcs.moon index 7a4d5d6..da42db6 100644 --- a/spec/inputs/funcs.moon +++ b/spec/inputs/funcs.moon | |||
@@ -153,6 +153,8 @@ args = (f,g,m | |||
153 | print "what" | 153 | print "what" |
154 | 154 | ||
155 | 155 | ||
156 | 156 | @ = (n)-> | |
157 | return 1 if n == 0 | ||
158 | n * @(n-1) | ||
157 | 159 | ||
158 | nil | 160 | nil |
diff --git a/spec/inputs/lists.moon b/spec/inputs/lists.moon index e377d5e..ef5650c 100644 --- a/spec/inputs/lists.moon +++ b/spec/inputs/lists.moon | |||
@@ -67,6 +67,6 @@ normal = (hello) -> | |||
67 | test = x 1,2,3,4,5 | 67 | test = x 1,2,3,4,5 |
68 | print thing for thing in *test | 68 | print thing for thing in *test |
69 | 69 | ||
70 | _ = -> a = b for row in *rows | 70 | -> a = b for row in *rows |
71 | 71 | ||
72 | 72 | ||
diff --git a/spec/inputs/using.moon b/spec/inputs/using.moon index e407983..cd78ba6 100644 --- a/spec/inputs/using.moon +++ b/spec/inputs/using.moon | |||
@@ -13,9 +13,10 @@ _ = (a,b,c using a,b,c) -> | |||
13 | a,b,c = 1,2,3 | 13 | a,b,c = 1,2,3 |
14 | world = 12321 | 14 | world = 12321 |
15 | 15 | ||
16 | _ = (a,e,f using a,b,c, hello) -> | 16 | (a,e,f using a,b,c, hello) -> |
17 | a,b,c = 1,2,3 | 17 | a,b,c = 1,2,3 |
18 | hello = 12321 | 18 | hello = 12321 |
19 | world = "yeah" | 19 | world = "yeah" |
20 | 20 | ||
21 | 21 | ||
22 | |||