From 4465a18f396212e177211f57c5c97cea444a0061 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 24 Jan 2020 14:55:59 +0800 Subject: fix issues. --- spec/inputs/class.moon | 4 ++-- spec/inputs/funcs.moon | 4 +++- spec/inputs/lists.moon | 2 +- spec/inputs/using.moon | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'spec') 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 super! _ = super.hello super\hello! - _ = super\hello + super\hello @zone: cool { @@ -207,7 +207,7 @@ class Wowha extends Thing super! _ = super.hello super\hello! - _ = super\hello + super\hello } 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 print "what" - +@ = (n)-> + return 1 if n == 0 + n * @(n-1) 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) -> test = x 1,2,3,4,5 print thing for thing in *test -_ = -> a = b for row in *rows +-> a = b for row in *rows 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) -> a,b,c = 1,2,3 world = 12321 -_ = (a,e,f using a,b,c, hello) -> +(a,e,f using a,b,c, hello) -> a,b,c = 1,2,3 hello = 12321 world = "yeah" + -- cgit v1.2.3-55-g6feb