aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/object.nom10
-rw-r--r--tests/text.nom4
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/object.nom b/tests/object.nom
index ab87fc7..a986abf 100644
--- a/tests/object.nom
+++ b/tests/object.nom
@@ -2,16 +2,16 @@ use "core"
use "lib/object2.nom"
#..
- immediately:
- define object "Dog":
- action [bark]:
+ immediately
+ define object "Dog"
+ action [bark]
%barks <- ("Bark!" for all 1 to (@%barks))
return (%barks joined with " ")
- action [get pissed off]:
+ action [get pissed off]
(@%barks) +<- 1
%d <- (new Dog {barks:2})
- as %d:
+ as %d
assume ((@) = %d)
assume ((@%barks) = 2)
assume ((bark) = "Bark! Bark!")
diff --git a/tests/text.nom b/tests/text.nom
index 6b4f2b5..004a630 100644
--- a/tests/text.nom
+++ b/tests/text.nom
@@ -14,11 +14,11 @@ assume (("x" + "y") = "xy")
say "Text test passed."
-immediately:
+immediately
parse [アクション %spec %body] as: action %spec %body
%こんにちは <- "こんにちは"
-アクション [% と言う]:
+アクション [% と言う]
"\(%)世界"
assume ((%こんにちは と言う) = "こんにちは世界") or barf "Unicode doesn't work"