From a841de51ab326101c6314b6b395e0cd1f70e85a3 Mon Sep 17 00:00:00 2001 From: nymphium Date: Thu, 31 Mar 2016 18:38:56 +0900 Subject: [PATCH] add spec --- spec/inputs/unless_else.moon | 5 +++++ spec/outputs/unless_else.lua | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 spec/inputs/unless_else.moon create mode 100644 spec/outputs/unless_else.lua diff --git a/spec/inputs/unless_else.moon b/spec/inputs/unless_else.moon new file mode 100644 index 0000000..b421d4d --- /dev/null +++ b/spec/inputs/unless_else.moon @@ -0,0 +1,5 @@ +if a + unless b + print "hi" + elseif c + print "not hi" diff --git a/spec/outputs/unless_else.lua b/spec/outputs/unless_else.lua new file mode 100644 index 0000000..f05e751 --- /dev/null +++ b/spec/outputs/unless_else.lua @@ -0,0 +1,7 @@ +if a then + if not (b) then + return print("hi") + elseif c then + return print("not hi") + end +end \ No newline at end of file