From a859a39f3455fcbf0575bd7acd25915c40922f92 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 8 Feb 2012 00:24:06 -0700 Subject: Committed the tests I've been using. Good for regressions, I'll have to make some sort of test suite thing later. --- tests/test.stage | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/test.stage (limited to 'tests/test.stage') diff --git a/tests/test.stage b/tests/test.stage new file mode 100644 index 0000000..cc765a4 --- /dev/null +++ b/tests/test.stage @@ -0,0 +1,35 @@ + +game.title = "Code Test"; +game.author = "Mike Buland"; +game.version = 1; +game.revision = 0; +game.start = <>; + +global +{ + command: "exit" + { + exit(); + } +} + +function getVal() +{ + global.stuff = {'hi': 5 }; +} + +situation <> +{ + setup + { + if true then + { + getVal(); + } + } + + enter + { + } +} + -- cgit v1.2.3