aboutsummaryrefslogtreecommitdiff
path: root/tests/all.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-02-02 15:48:28 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-02-02 15:49:42 -0800
commit505fec2a61d2571317cc4bbc36ec0f4822a63f9d (patch)
treec2b37e9db8e2f958fbca0caa0a9c4924912a37a9 /tests/all.nom
parent513c721198b2256235a95c98d161ab1bb51e6671 (diff)
Restructured the nomsu files to group all the essentials into core/ and
all the optionals into lib/. lib/core.nom and tests/all.nom are no longer needed now.
Diffstat (limited to 'tests/all.nom')
-rw-r--r--tests/all.nom28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/all.nom b/tests/all.nom
deleted file mode 100644
index 5b95786..0000000
--- a/tests/all.nom
+++ /dev/null
@@ -1,28 +0,0 @@
-use "lib/core.nom"
-
-# Prerequisites:
-%var <- 99
-assume (%var = 99) or barf "Var assignment doesn't work."
-
-try: barf "barf"
-..and if it succeeds: barf "try % and if it succeeds failed."
-
-try: do nothing
-..and if it barfs: barf "try % and if it barfs failed."
-
-immediately
- assume (%ONCE is (nil)) or barf "immediately is executing twice"
- export %ONCE <- "ONCE"
- %foo <- "immediately local"
-assume (%ONCE = "ONCE") or barf "Globals don't work."
-assume (%foo is (nil)) or barf "Immediately is leaking locals."
-
-# Run per-file test suites
-run file "tests/metaprogramming.nom"
-run file "tests/text.nom"
-run file "tests/operators.nom"
-run file "tests/control_flow.nom"
-run file "tests/math.nom"
-run file "tests/collections.nom"
-
-say "All tests passed!"