racket/collects/string-constants
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
..
private rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
danish-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
dutch-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
english-string-constants.rkt Closing pr11216. Adding one armed check-error to teaching languages. 2010-09-16 21:00:05 -06:00
french-string-constants.rkt adjusted German and French translations 2010-07-26 11:51:43 -05:00
german-string-constants.rkt Synch German string constants with latest. 2010-09-11 12:58:39 +02:00
info.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
japanese-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
korean-string-constants.rkt Added Korean translation from Jae sung Chung 2010-09-13 01:56:50 -04:00
main.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
portuguese-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
russian-string-constants.rkt fixed preserve-stacktrace-information string constant; fix from Sergey Semerikov 2010-08-10 19:31:11 -05:00
simplified-chinese-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
spanish-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
string-constant-lang.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
string-constant.rkt Added Korean translation from Jae sung Chung 2010-09-13 01:56:50 -04:00
string-constants.scrbl misc doc fixes 2010-05-05 11:07:34 -06:00
traditional-chinese-string-constants.rkt More plt-scheme -> racket-lang, specifically for planet and bugs urls. 2010-05-31 15:11:27 -04:00
ukrainian-string-constants.rkt oops 2010-08-10 19:57:22 -05:00