test for control at run termination
This commit is contained in:
parent
703edc46a0
commit
20b9b8ef4d
|
@ -27,6 +27,9 @@
|
|||
(unless (= (machine-stack-size a-machine) 1)
|
||||
(raise-syntax-error #f (format "Stack is not back to the prefix as expected!")
|
||||
#'stx))
|
||||
(unless (null? (machine-control a-machine))
|
||||
(raise-syntax-error #f (format "Control is not empty as expected!")
|
||||
#'stx))
|
||||
(printf "ok. ~s steps.\n\n" num-steps)))))]))
|
||||
|
||||
;; test, and expect an error
|
||||
|
|
Loading…
Reference in New Issue
Block a user