34 lines
922 B
Racket
34 lines
922 B
Racket
|
|
;; Basic checks for the beginner language. Error messages really
|
|
;; should be inspected manually.
|
|
|
|
;; Limitations of this test suite:
|
|
;; - It doesn't check reader-level parameterization, such as use of quotes
|
|
;; - It doesn't check format of printed results
|
|
;; - It doesn't check the absence of Racket forms
|
|
|
|
;; Don't try to run other tests from the test suite after loading this
|
|
;; one into a particular namespace.
|
|
|
|
(load-relative "../racket/loadtest.rktl")
|
|
|
|
;; Don't need these:
|
|
(define no-extra-if-tests? #t)
|
|
|
|
(require (only-in mzscheme
|
|
exn:fail?
|
|
exn:fail:contract?))
|
|
|
|
(define current-htdp-lang 'lang/htdp-beginner-abbr)
|
|
(load-relative "htdp-test.rktl")
|
|
|
|
(require (lib "htdp-beginner-abbr.rkt" "lang"))
|
|
|
|
(load-relative "beg-adv.rktl")
|
|
(load-relative "beg-intml.rktl")
|
|
(load-relative "beg-intm.rktl")
|
|
(load-relative "beg-bega.rktl")
|
|
(load-relative "bega-adv.rktl")
|
|
|
|
(report-errs)
|