aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-15 19:41:22 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-15 19:43:28 -0700
commitbe06fc096aa28358914bd6a76b4ea380a04b8873 (patch)
tree1f6c300bc8fbeb6cd84008124fca1e43f5513616 /tests
parent8a44869c4a548692a19afe5258e2540f7d351c8a (diff)
Major changes to how versioning and parsing work. This should be a
better path going forward to handling upgrades. Old syntax files will stick around for compatibility purposes. Old syntax can be parsed into valid syntax trees via the old syntax (.peg) files, and then old syntax trees should be valid and can be upgraded via the normal code path. This change has lots of improvements to Nomsu codegen too.
Diffstat (limited to 'tests')
-rw-r--r--tests/collections.nom1
-rw-r--r--tests/colors.nom1
-rw-r--r--tests/control_flow.nom1
-rw-r--r--tests/coroutines.nom1
-rw-r--r--tests/errors.nom1
-rw-r--r--tests/inner/inner.nom1
-rw-r--r--tests/math.nom1
-rw-r--r--tests/metaprogramming.nom1
-rw-r--r--tests/object.nom1
-rw-r--r--tests/operators.nom1
-rw-r--r--tests/os.nom3
-rw-r--r--tests/scopes.nom1
-rw-r--r--tests/text.nom1
13 files changed, 14 insertions, 1 deletions
diff --git a/tests/collections.nom b/tests/collections.nom
index d08a20e..9df9eba 100644
--- a/tests/collections.nom
+++ b/tests/collections.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#..
Tests for the stuff defined in core/control_flow.nom
diff --git a/tests/colors.nom b/tests/colors.nom
index b3c22e7..16610f4 100644
--- a/tests/colors.nom
+++ b/tests/colors.nom
@@ -1,2 +1,3 @@
+#!/usr/bin/env nomsu -V1
use "lib/consolecolor.nom"
say: bright: green "Color test passed."
diff --git a/tests/control_flow.nom b/tests/control_flow.nom
index 340bd7d..62b59fa 100644
--- a/tests/control_flow.nom
+++ b/tests/control_flow.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the stuff defined in core/control_flow.nom
diff --git a/tests/coroutines.nom b/tests/coroutines.nom
index 8d58170..16ef100 100644
--- a/tests/coroutines.nom
+++ b/tests/coroutines.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the stuff defined in core/control_flow.nom
diff --git a/tests/errors.nom b/tests/errors.nom
index 1788a34..7f52532 100644
--- a/tests/errors.nom
+++ b/tests/errors.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the stuff defined in core/errors.nom
diff --git a/tests/inner/inner.nom b/tests/inner/inner.nom
index 790ea0f..a4341f0 100644
--- a/tests/inner/inner.nom
+++ b/tests/inner/inner.nom
@@ -1,2 +1,3 @@
+#!/usr/bin/env nomsu -V1
use "core"
say "Inner directory 'use' test passed."
diff --git a/tests/math.nom b/tests/math.nom
index ffc0a2f..3764dee 100644
--- a/tests/math.nom
+++ b/tests/math.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#..
Tests for the stuff defined in core/control_flow.nom
diff --git a/tests/metaprogramming.nom b/tests/metaprogramming.nom
index 0150350..083ddc7 100644
--- a/tests/metaprogramming.nom
+++ b/tests/metaprogramming.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the stuff defined in core/metaprogramming.nom
diff --git a/tests/object.nom b/tests/object.nom
index 4848bf9..795d85e 100644
--- a/tests/object.nom
+++ b/tests/object.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the object model defined in lib/object.nom
diff --git a/tests/operators.nom b/tests/operators.nom
index 4b0d6ad..375a80a 100644
--- a/tests/operators.nom
+++ b/tests/operators.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#..
Tests for the stuff defined in core/operators.nom
diff --git a/tests/os.nom b/tests/os.nom
index 9b546ef..efc6e56 100644
--- a/tests/os.nom
+++ b/tests/os.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#
Tests for the stuff defined in lib/os.nom
@@ -5,7 +6,7 @@ use "core"
use "lib/os.nom"
%lines <-: lines in: read file "tests/os.nom"
-assume: %lines.2 = " Tests for the stuff defined in lib/os.nom"
+assume: %lines.3 = " Tests for the stuff defined in lib/os.nom"
%n <- 0
for file %f in "core"
diff --git a/tests/scopes.nom b/tests/scopes.nom
index 67598be..ffda7f6 100644
--- a/tests/scopes.nom
+++ b/tests/scopes.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
use "core"
%x <- "outer"
diff --git a/tests/text.nom b/tests/text.nom
index e42fe73..57480d8 100644
--- a/tests/text.nom
+++ b/tests/text.nom
@@ -1,3 +1,4 @@
+#!/usr/bin/env nomsu -V1
#..
Tests for the stuff defined in core/text.nom