Matthias Felleisen
f733f149f5
fix string-ith's error message; Closes PR 13197
2012-10-17 20:27:12 -04:00
Matthew Flatt
3662aee60b
*SL: fix `check-expect' syntax checking
...
Bug introduced during error-message conversion.
2012-07-01 09:25:12 -06:00
Matthias Felleisen
b5b918ca4a
restored object-name tests for the new doc system
2012-06-25 19:15:09 -04:00
Matthias Felleisen
92c62d7417
disabled name tests for htdp languages during documentation reorg
2012-06-25 19:15:08 -04:00
Eli Barzilay
7d6e79023c
Random pickiness.
...
Spaces at EOFs, indentation, etc.
2012-06-22 12:00:48 -04:00
Matthew Flatt
1dc0072d03
further error message convention refinements
...
Add extra intitial-message lines, use "..." on a field name
to indicate that it could reasonably be hidden by default,
and refine some existing messages.
2012-06-22 09:47:59 +08:00
Matthew Flatt
9af2a331ca
another ASL error-message repair
2012-06-21 07:14:49 +08:00
Eli Barzilay
2c19677358
Make some .rktl tests run with "racket".
...
With this commit, all of the leftover mentions of gracket in
`drdr:command-line' are things that pop up windows.
2012-06-19 03:18:23 -04:00
Matthew Flatt
82943df351
another *SL error-message repair
2012-06-12 06:02:57 +08:00
Matthew Flatt
255e3cbe2e
another *SL error-rewriting fix
...
Arity errors no include supplied arguments, but strip them
away for *SL messages.
2012-06-06 13:25:14 +08:00
Matthew Flatt
e44c0809e8
rewrite contract error messages for *SL
...
The rewrite involves parsing contract expressions and constructing
replacement prose.
2012-06-05 17:53:27 +08:00
Matthew Flatt
cc0b887106
adjust *SL error-message rewriting
2012-06-03 11:09:32 +08:00
Matthew Flatt
413c940fe6
update HtDP *SL tests for revised error-message convention
...
This change does not yet update the *SL error-message rewriter
to recognize the new error-message formats; the tests do not
currently use the rewriter. A next step is to decide on the
rewritings, implement them, change the test suite to use the
rewriter, and test the rewritings.
2012-05-26 08:05:12 -06:00
Sam Tobin-Hochstadt
c5e30d8af5
Use the correct #%app for applications of `local' bound identifiers in the student languages.
2012-03-24 16:04:08 -04:00
Eli Barzilay
f7c67b49a4
Big newline at EOF scan.
2012-02-29 00:28:11 -05:00
Matthew Flatt
8cf49dfdb1
fix format of some error messages
...
Closes 12536
2012-02-04 05:32:00 -07:00
Robby Findler
7acc5b7852
adjust HtDP teaching languages' first and rest so that they accept circular lists.
...
This commit fix an unintentional change introduced by this commit:
c7d67f9bab
(and it also adds in test cases for what that commit appears to have
been doing)
Assuming everyone agrees that the behavior for first rest from back
in 2010 is the behavior we still want (and the lack of release notes
on the subject makes me believe that we do), then:
Please include in 5.2.
2011-10-21 08:09:34 -05:00
Robby Findler
a40f288e48
relaxed the restrictions on planet requires in the teaching languages to allow the new forms
2011-10-07 11:48:24 -05:00
Matthew Flatt
a53f51d92d
fix HtDP local' to work better with macros that expand to
begin'
...
In particular, the forms within `begin' need to be partially
expanded before checking whether they're allowed.
2011-09-03 15:15:24 -06:00
Jay McCarthy
3cd6be5931
I believe this fixes PR12117. The teaching languages rely on syntax/struct. (I have run the teaching language tests, but do not other uses of syntax/struct.) It appears that syntax/struct has been incorrectly creating this information for some time. The problem is that it would end the static info with a #f if the selectors or setters were omitted, but reading the documentation implies that there should be a final #f in either case. I've therefore changed the boolean to an or over the flags
2011-08-19 11:30:42 -06:00
Guillaume Marceau
adf965e92a
Undoes the 'produces -> return' part of commit c31d352f
, keeping the 'changes -> mutates' change and the assorted bug fixes it contained.
2011-07-17 16:48:12 -04:00
Guillaume Marceau
c31d352f2b
Standartize the vocabulary to "the function returns" and "set! mutates"
2011-07-15 03:27:27 -04:00
Matthew Flatt
3d03e8f884
fix define-primitive' and
provide-primitive'
...
Allow the implement to follow the `define-primitive'
or `provide-primitive' declaration.
2011-07-09 16:57:56 -06:00
Matthew Flatt
584a96a4e0
fix define-primitive' and
porvide-primitive' to check binding
...
Closes PR 12031
2011-07-09 08:54:36 -06:00
Matthew Flatt
2840e2367b
fix ASL `(begin0)' error message
2011-07-07 10:57:04 -06:00
Guillaume Marceau
c287519cc0
Updated the expected errors messages in the tests to match the new vocab.
2011-07-06 08:47:15 -04:00
Guillaume Marceau
aa9dbd21f5
Updated the error message of check-expect. Fine tuning of the error messages.
2011-07-06 05:35:25 -04:00
Guillaume Marceau
6eea5b1793
The new error messages now pass the tests/language-test.rkt suite
...
(except for contract runtime error messages in levels higher than
beginner.)
2011-07-06 00:19:26 -04:00
Guillaume Marceau
f858b8bb5c
Htdp no longer throws exceptions that have no source information
2011-07-06 00:19:24 -04:00
Guillaume Marceau
79589b9b9f
The htdp test suite now checks that the correct error messages are thrown.
2011-07-06 00:19:22 -04:00
Eli Barzilay
debd1f9f1e
Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
...
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Jay McCarthy
6474b519bb
Fixes usage of argb-pixels
2010-11-25 12:01:44 -05:00
Matthias Felleisen
df62ca47e9
added 'function', Closes PR 11283
2010-10-13 10:31:00 -04:00
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
Robby Findler
ad9548db7d
added a README
2010-09-02 15:41:02 -05:00
Robby Findler
a12f47f506
moved the teaching language test suites to their own directory
2010-09-02 15:41:02 -05:00