test case for PR 14009
This commit is contained in:
parent
beb7e2f163
commit
0b4679d44f
13
pkgs/htdp-pkgs/htdp-test/2htdp/tests/stop-when-error.rkt
Normal file
13
pkgs/htdp-pkgs/htdp-test/2htdp/tests/stop-when-error.rkt
Normal file
|
@ -0,0 +1,13 @@
|
|||
;; The first three lines of this file were inserted by DrRacket. They record metadata
|
||||
;; about the language level of this file in a form that our tools can easily process.
|
||||
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname stop-when-error) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
|
||||
(require 2htdp/image)
|
||||
(require 2htdp/universe)
|
||||
|
||||
(define (render x) (circle x "solid" "blue"))
|
||||
|
||||
(check-error (big-bang 10
|
||||
(to-draw render)
|
||||
(on-tick sub1)
|
||||
(stop-when zero? (circle 10 "solid" "red")))
|
||||
"stop-when: expected a function as second argument; given #<image>")
|
Loading…
Reference in New Issue
Block a user