aboutsummaryrefslogtreecommitdiff
path: root/examples/parser_tests.nom
diff options
context:
space:
mode:
Diffstat (limited to 'examples/parser_tests.nom')
-rw-r--r--examples/parser_tests.nom7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/parser_tests.nom b/examples/parser_tests.nom
index b1eb23b..b91266e 100644
--- a/examples/parser_tests.nom
+++ b/examples/parser_tests.nom
@@ -1,4 +1,5 @@
require "lib/core.nom"
+require "lib/testing.nom"
test: say "foo"
..yields ".."
@@ -148,12 +149,12 @@ test:
z
..yields ".."
|Call [if % % else %]:
- | Var[x]
+ | Var["x"]
| Thunk:
| Call [x]!
| Thunk:
| Call [if % % else %]:
- | Var[y]
+ | Var["y"]
| Thunk:
| Call [y]!
| Thunk:
@@ -169,6 +170,6 @@ test:
%Brian's hat
..yields ".."
|Call [% 's hat]:
- | Var[Brian]
+ | Var["Brian"]
say "All tests passed!"