Commit Graph

21 Commits

Author SHA1 Message Date
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
Jay McCarthy
407dcee206 Adding match to ASL 2010-07-22 15:39:53 -06:00
Jay McCarthy
9eb053d4db Adding define-datatype to ASL 2010-07-22 11:36:04 -06:00
Jay McCarthy
f72a71c67f Fixing advanced language prim ops 2010-07-15 15:45:54 -06:00
Kathy Gray
f300ba967a Changed syntax of check-member-of so that it will work in htdp-beginner
Updated docs to reflect this

svn: r16065
2009-09-18 14:19:50 +00:00
Kathy Gray
e3c2721052 Adding check-member-of and check-range to the htdp languages and updating the docs.
svn: r16064
2009-09-18 12:37:18 +00:00
Matthew Flatt
81f9622b58 HtDP lang doc repairs
svn: r15203
2009-06-18 07:47:36 +00:00
Eli Barzilay
4288c6c2c7 The Scribble reader was improved to make it pull out the syntax
punctuations outside of the form, as it does with quote punctuations.
So things like this

  #, @foo{...}

that required the space to make the @foo read as a scribble form are
now better written as

  @#,foo{...}

This changes all such occurrences.  (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)

svn: r15111
2009-06-07 10:12:32 +00:00
Matthew Flatt
e02aef66a4 doc λ in HtDP Intm+Lam and Adv
svn: r14540
2009-04-17 11:27:23 +00:00
Eli Barzilay
c0a8a01222 Changed @itemize{...} to @itemize[...] (done after comparing the doc
tree and verifying that there are no changes).
(Also fixed a few bugs that were in the code)

svn: r14427
2009-04-05 17:46:20 +00:00
Matthew Flatt
9927b0b576 changed htdp languages to allow identifier module paths; scribble improvements to latex back-end; added definterface
svn: r13681
2009-02-16 22:04:51 +00:00
Matthew Flatt
70146a8d3f fix htdp doc errors (PR 9846)
svn: r12102
2008-10-23 14:18:58 +00:00
Matthias Felleisen
66bed75bd3 fixed docs for lang
svn: r11351
2008-08-20 02:38:02 +00:00
Matthew Flatt
88ed3843da fix typo in advanced define-struct docs
svn: r11168
2008-08-09 12:05:59 +00:00
Matthew Flatt
938df1800c improve error reporting ands doc for check-expect (PR 9499 and 9500)
svn: r10257
2008-06-13 17:24:24 +00:00
Matthew Flatt
fe7b6fd26e add htdp-lib doc
svn: r9417
2008-04-23 02:06:47 +00:00
Matthew Flatt
a9d7b95d3d doc HtDP language additions for testing
svn: r9163
2008-04-04 12:12:35 +00:00
Matthew Flatt
a6642f066f fix program grammar
svn: r9017
2008-03-18 14:15:58 +00:00
Matthew Flatt
17c6b00f44 fix typo: Beginner -> Beginning
svn: r8198
2008-01-03 19:14:33 +00:00
Matthew Flatt
7fc41024c0 3.99.0.9: binding links in docs use nominal import sources
svn: r8196
2008-01-03 19:07:02 +00:00
Matthew Flatt
d4482c90ca finish first draft of HtDP language docs
svn: r8179
2008-01-02 03:33:00 +00:00