racket/collects/tests/htdp-lang
Jay McCarthy 01a41a812e Closing pr11216. Adding one armed check-error to teaching languages.
[It will not bother me if we revert this commit. I liked SK's idea and found it easy to implement. I wonder if others will be worried that it is easy to unintentionally leave off the second argument to check-error. I also wonder if it is problematic to add new string constants, like I've done.]

Here is an example:

(check-error (/ 1 0) "/: division by zero")
(check-error (/ 1 0) "divide by zero")
(check-error (/ 1 0))
(check-error 1)

Here is the output:

Ran 4 tests.
2 of the 4 tests failed.

No signature violations.

Check failures:
	check-error encountered the following error instead of the expected divide by zero
   :: /: division by zero
in ex.rkt, line 2, column 0
	check-error expected an error, but instead received the value 1.
in ex.rkt, line 4, column 0
2010-09-16 21:00:05 -06:00
..
advanced.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
beg-adv.rktl Closing pr11216. Adding one armed check-error to teaching languages. 2010-09-16 21:00:05 -06:00
beg-bega.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
beg-intm.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
beg-intml.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
bega-adv.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
beginner-abbr.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
beginner.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
htdp-image.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
htdp-test.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
htdp.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
intermediate-lambda.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
intermediate.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
intm-adv.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
intm-intml.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
intmlam-adv.rktl moved the teaching language test suites to their own directory 2010-09-02 15:41:02 -05:00
README added a README 2010-09-02 15:41:02 -05:00

The files in this directory test the teaching language implementation.

htdp.rktl
  load this file (racket -qr htdp.rktl) to run most of the tests
  
htdp-image.rktl
  load this file in gracket to run the htdp/image tests

See beginner.rktl for more.