aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/scoping.sy1
-rw-r--r--progs/tests/simple.sy14
2 files changed, 10 insertions, 5 deletions
diff --git a/progs/tests/scoping.sy b/progs/tests/scoping.sy
index 7679948..f8e0b00 100644
--- a/progs/tests/scoping.sy
+++ b/progs/tests/scoping.sy
@@ -9,5 +9,6 @@ a <=> 1
{
a = 2
a : int = 1
+ a
}
a <=> 2
diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy
index 42b9ac2..0f69ae2 100644
--- a/progs/tests/simple.sy
+++ b/progs/tests/simple.sy
@@ -1,7 +1,11 @@
-a :: 1
-a <=> 1
-b := 2
+a := 0
{
- a <=> 1
- b <=> 2
+ b := 99999
+ {
+ a := 99999
+ a
+ }
+ b
+ a -= 1
}
+a <=> -1