diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/class.moon | 16 | ||||
| -rw-r--r-- | spec/inputs/whitespace.moon | 14 |
2 files changed, 29 insertions, 1 deletions
diff --git a/spec/inputs/class.moon b/spec/inputs/class.moon index 83f3760..3288dc6 100644 --- a/spec/inputs/class.moon +++ b/spec/inputs/class.moon | |||
| @@ -210,4 +210,20 @@ class Wowha extends Thing | |||
| 210 | super\hello | 210 | super\hello |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | do | ||
| 214 | class Test | ||
| 215 | new: => @@if = true | ||
| 216 | @do: => 1 | ||
| 217 | test: => @@if and @@do! | ||
| 218 | test = Test! | ||
| 219 | test\test! | ||
| 220 | |||
| 221 | do | ||
| 222 | class Test | ||
| 223 | new: => @if = true | ||
| 224 | do: => 1 | ||
| 225 | test: => @if and @do! | ||
| 226 | test = Test! | ||
| 227 | test\test! | ||
| 228 | |||
| 213 | nil | 229 | nil |
diff --git a/spec/inputs/whitespace.moon b/spec/inputs/whitespace.moon index 36f14ae..0422443 100644 --- a/spec/inputs/whitespace.moon +++ b/spec/inputs/whitespace.moon | |||
| @@ -97,6 +97,18 @@ b( | |||
| 97 | c(one, two, | 97 | c(one, two, |
| 98 | three, four) | 98 | three, four) |
| 99 | 99 | ||
| 100 | -- | 100 | -- |
| 101 | |||
| 102 | f = -> | ||
| 103 | a, | ||
| 104 | b, | ||
| 105 | c | ||
| 106 | |||
| 107 | a, | ||
| 108 | b, | ||
| 109 | c = 1, | ||
| 110 | 2, | ||
| 111 | f | ||
| 112 | :abc | ||
| 101 | 113 | ||
| 102 | nil | 114 | nil |
