compatibility/collects/tests/racket/compat.rkt
Matthew Flatt a9c5ca02a2 move tests/mzscheme to tests/racket
original commit: 882b7dce0eaf92eab6fe45565ca6c1a09aa26027
2010-04-27 18:28:39 -06:00

25 lines
589 B
Racket

(load-relative "loadtest.rkt")
(Section 'compat)
(require mzlib/compat)
(define-structure (add left right) ([sum (+ left right)]))
(test 9 add-sum (make-add 3 6))
(test #f getprop 'hello-world 'any)
(test 'oops getprop 'hello-world 'any 'oops)
(test #f getprop 'hello-world 'any)
(test (void) putprop 'hello-world 'any 'aha)
(test 'aha getprop 'hello-world 'any)
(test 'aha getprop 'hello-world 'any 'oops)
(test #f getprop 'hello-world 'many)
(test 'oops getprop 'hello-world 'many 'oops)
(test #f getprop 'bye-world 'any)
(test 'oops getprop 'bye-world 'any 'oops)
(report-errs)