diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/bubbling.moon | 15 | ||||
-rw-r--r-- | spec/inputs/stub.moon | 4 | ||||
-rw-r--r-- | spec/inputs/syntax.moon | 2 |
3 files changed, 11 insertions, 10 deletions
diff --git a/spec/inputs/bubbling.moon b/spec/inputs/bubbling.moon index 62d1550..23a85d4 100644 --- a/spec/inputs/bubbling.moon +++ b/spec/inputs/bubbling.moon | |||
@@ -15,14 +15,13 @@ j = for i=1,10 | |||
15 | m = (...) -> | 15 | m = (...) -> |
16 | [x for x in *{...} when f(...) > 4] | 16 | [x for x in *{...} when f(...) > 4] |
17 | 17 | ||
18 | x = for i in *{...} do i | 18 | _ = (...)-> |
19 | y = [x for x in *{...}] | 19 | x = for i in *{...} do i |
20 | z = [x for x in hallo when f(...) > 4] | 20 | y = [x for x in *{...}] |
21 | z = [x for x in hallo when f(...) > 4] | ||
21 | 22 | ||
23 | a = for i=1,10 do ... | ||
22 | 24 | ||
23 | a = for i=1,10 do ... | 25 | b = for i=1,10 |
24 | 26 | (...)-> print ... | |
25 | b = for i=1,10 | ||
26 | -> print ... | ||
27 | |||
28 | 27 | ||
diff --git a/spec/inputs/stub.moon b/spec/inputs/stub.moon index b38056a..60347e7 100644 --- a/spec/inputs/stub.moon +++ b/spec/inputs/stub.moon | |||
@@ -12,5 +12,7 @@ print x\val! | |||
12 | 12 | ||
13 | 13 | ||
14 | -- ... should be bubbled up anon functions | 14 | -- ... should be bubbled up anon functions |
15 | x = hello(...)\world | 15 | ((...)-> x = hello(...)\world)! |
16 | |||
17 | nil | ||
16 | 18 | ||
diff --git a/spec/inputs/syntax.moon b/spec/inputs/syntax.moon index b5f973b..23b44ce 100644 --- a/spec/inputs/syntax.moon +++ b/spec/inputs/syntax.moon | |||
@@ -124,7 +124,7 @@ if hello then _ = 343 | |||
124 | 124 | ||
125 | print "what" if cool | 125 | print "what" if cool |
126 | 126 | ||
127 | arg = {...} | 127 | ((...)-> arg = {...})! |
128 | 128 | ||
129 | x = (...) -> | 129 | x = (...) -> |
130 | dump {...} | 130 | dump {...} |