aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-25 16:30:49 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-25 16:31:09 -0700
commit5d59d510cd6fdc8553250e5ec10f19a285e8878c (patch)
tree69d9a2646ed59746500fc9c62a04294a1019d381 /tests
parent50a092e4b5cb82131c0c8f6f46c7d21a42198858 (diff)
Removing end-of-line ":" and "(..)" for blocks (they just use
indentation now).
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"