racket/collects/tests/mzscheme/compat.ss
Eli Barzilay bbf54efde9 Better output: using quiet.ss will show nothing except for section
headers and errors (if any).  Also, using quiet.ss will exit with an
error code if there were errors.

svn: r3655
2006-07-07 23:46:35 +00:00

25 lines
593 B
Scheme

(load-relative "loadtest.ss")
(Section 'compat)
(require (lib "compat.ss"))
(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)