aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/control_flow.nom5
-rw-r--r--tests/object.nom2
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/control_flow.nom b/tests/control_flow.nom
index 40b344f..886b59c 100644
--- a/tests/control_flow.nom
+++ b/tests/control_flow.nom
@@ -178,9 +178,10 @@ try
do
barf
..then always
- %x <- 1
+ %x <- 3
..and if it barfs: do nothing
-assume (%x = 1) or barf "do/then always failed"
+lua> "collectgarbage()"
+assume (%x = 3) or barf "do/then always failed"
say "Control flow test passed."
diff --git a/tests/object.nom b/tests/object.nom
index aeeb559..041b784 100644
--- a/tests/object.nom
+++ b/tests/object.nom
@@ -26,9 +26,9 @@ as: new "Dog" {barks:1}
action [foo]
as: new "Dog" {barks:23}
return: (me).barks
- barf "Reached unreachable code"
assume: (foo) = 23
+..or barf: "Oops, \(foo) != 23"
as: new "Dog" {barks:101}
try: as (new "Dog" {barks:8}) (barf)