From 859c033cb0f58e0bad88da91862f2478ffa095f9 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Mon, 18 Jul 2011 23:39:09 -0700 Subject: [PATCH] test cases for error rewriting --- tests/error_inputs/first.moon | 24 ++++++++++++++++++++++++ tests/error_inputs/second.moon | 18 ++++++++++++++++++ tests/error_inputs/third.moon | 18 ++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 tests/error_inputs/first.moon create mode 100644 tests/error_inputs/second.moon create mode 100644 tests/error_inputs/third.moon diff --git a/tests/error_inputs/first.moon b/tests/error_inputs/first.moon new file mode 100644 index 0000000..15afa9e --- /dev/null +++ b/tests/error_inputs/first.moon @@ -0,0 +1,24 @@ + +hello_world = false + +if hello_world + print "sackman" + x = 5 + 5 + print something.what + + +if hello_world + print 343434 + print bott.dady + + +if not hello_world + if true + x = 5+2 + x = 5+2 + x = 5+2 + + if true + print what.heck + + diff --git a/tests/error_inputs/second.moon b/tests/error_inputs/second.moon new file mode 100644 index 0000000..053dcca --- /dev/null +++ b/tests/error_inputs/second.moon @@ -0,0 +1,18 @@ + + +if false + true + true + true + true + print hello +else + true + true + true + true + print "hello world" + print doesnt.exist + + + diff --git a/tests/error_inputs/third.moon b/tests/error_inputs/third.moon new file mode 100644 index 0000000..08ef1d7 --- /dev/null +++ b/tests/error_inputs/third.moon @@ -0,0 +1,18 @@ + +if (-> + print "hello world" + print "who is this") + true + true + true + true + print dead.world + print "okay now" + print "this is wrong" + print "this is wrong" + print "this is wrong" + print "this is wrong" + print "this is wrong" + print "this is wrong" + print "this is wrong" +