aboutsummaryrefslogtreecommitdiff
path: root/tests/object.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tests/object.nom')
-rw-r--r--tests/object.nom10
1 files changed, 5 insertions, 5 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!")