fixed check and error message for stop-when; Closes PR14009

This commit is contained in:
Matthias Felleisen 2013-09-11 20:49:27 +02:00
parent 0b4679d44f
commit b3e7cc0ce0
3 changed files with 4 additions and 3 deletions

View File

@ -34,8 +34,8 @@
(define ip> string>)
;; Symbol X Nat -> X
(define (proc> tag f ar)
(check-proc tag f ar "first" (if (> ar 1) (format "~a arguments" ar) "one argument"))
(define (proc> tag f ar #:place (place "first"))
(check-proc tag f ar place (if (> ar 1) (format "~a arguments" ar) "one argument"))
f)
;; Symbol X (Number -> Boolean) String String -> X

View File

@ -112,7 +112,7 @@
#:except
[(_ stop? last-picture)
#'(list (proc> 'stop-when (f2h stop?) 1)
(proc> 'stop-when (f2h last-picture) 1))])]
(proc> 'stop-when (f2h last-picture) 1 #:place "second"))])]
;; (U #f Any)
;; -- should the session be recorded and turned into PNGs and an animated GIF
;; -- if the value is a string and is the name of a local directory, use it!

View File

@ -10,6 +10,7 @@ run() {
cd tests
run stop-when-error.rkt
run key-error.rkt
run run-movie.rkt
run bad-draw.rkt