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/g.stage | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/g.stage (limited to 'tests/g.stage') diff --git a/tests/g.stage b/tests/g.stage new file mode 100644 index 0000000..05ca5ad --- /dev/null +++ b/tests/g.stage @@ -0,0 +1,36 @@ +situation <> +{ + setup + { + display("pre start"); + a(); + display("post start"); + } + enter + { + display("Start::Enter"); + } +} + +function a() +{ + display("pre a"); + b(); + display("post a"); +} + +function b() +{ + display("pre b"); + goto( <<2>> ); + display("post b"); +} + +situation <<2>> +{ + enter + { + display("pre 2"); + } +} + -- cgit v1.2.3