to-draw and on-draw check
This commit is contained in:
parent
96bf9d2518
commit
995ce61434
13
collects/2htdp/tests/bad-draw2.rkt
Normal file
13
collects/2htdp/tests/bad-draw2.rkt
Normal file
|
@ -0,0 +1,13 @@
|
|||
#lang scheme
|
||||
|
||||
(require 2htdp/universe)
|
||||
|
||||
(define s "")
|
||||
(define x 0)
|
||||
|
||||
(with-handlers ((exn? (lambda _ "success!")))
|
||||
(big-bang 0
|
||||
(on-tick (lambda (w) (begin (set! x (+ x 1)) w)))
|
||||
(to-draw (lambda (w) (set! s (number->string w))))
|
||||
(on-draw (lambda (w) (set! s (number->string w))))))
|
||||
|
Loading…
Reference in New Issue
Block a user