The Racket repository
Go to file
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
collects Closing pr11216. Adding one armed check-error to teaching languages. 2010-09-16 21:00:05 -06:00
doc updated history 2010-09-05 07:42:00 -05:00
man/man1 A lot of "MrEd" -> "GRacket"s. 2010-05-16 23:46:05 -04:00
src Unbreak compile for new libpng. 2010-09-16 18:19:33 +02:00
.gitattributes Don't include git files in archives. 2010-05-12 01:46:05 -04:00
.gitignore Added DrDr house-calls directory to git-ignored files. 2010-06-07 23:00:17 -04:00
.mailmap Add a mailmap entry for Vincent 2010-05-21 16:09:31 -04:00
README Add a generic toplevel README file, make the bundle script use it. 2010-05-18 17:28:44 -04:00

The Racket programming language
===============================

Important executables:

* DrRacket: Racket's integrated development environment (start here!).

* Racket: the main command-line entry point for running racket programs
  and scripts.

* GRacket: the GUI-enabled Racket executable.

* raco: Racket's command-line toolset.


More Information
----------------

Racket comes with extensive documentation: use DrRacket's `Help' menu,
or run `raco docs'.  Also, visit us at http://racket-lang.org/ for more
Racket resources.

Instructions for building Racket from source are in src/README.


License
-------

Racket
Copyright (c) 2010 PLT Scheme Inc.

Racket is distributed under the GNU Lesser General Public License
(LGPL).  This means that you can link Racket into proprietary
applications, provided you follow the rules stated in the LGPL.  You can
also modify Racket; if you distribute a modified version, you must
distribute it under the terms of the LGPL, which in particular means
that you must release the source code for the modified software.  See
doc/release-notes/COPYING.LIB for more information.