Commit Graph

9 Commits

Author SHA1 Message Date
John Clements
dfe6f78d80 back to old style, not sure why 2010-10-20 12:05:06 -07:00
Mike Sperber
fd5e9d4d63 Unbreak the stepper on `check-expect'.
All kinds of things expand into (let () ...), so all kinds of things
break.
2010-10-19 11:56:24 +02:00
Mike Sperber
39541c51b5 Add `tech-equal?'.
This refuses to work on inexact numbers and procedures.  Use it in
`check-expect' & friends.
2010-10-15 15:26:24 +02:00
Mike Sperber
9b1188c77a Re-instate Robby's hack to display test results off REPL errors.
... and generalize it so there's an action before (clearing the old
tests out) in addition to after (displaying the test results).

Also, do for DMdA as for HtDP.
2010-10-08 15:25:44 +02:00
Mike Sperber
b4d1e29784 Rename test-info' in places where it's really a test-engine'. 2010-10-08 09:02:39 +02:00
John Clements
a095ebc326 added format arg to printf to avoid corner-case printf bugs, rackety changes 2010-09-17 10:19:32 -07: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
Mike Sperber
450109f061 Merge changes to scheme-tests.rkt into racket-tests.rkt. 2010-07-13 17:15:50 +02:00
Sam Tobin-Hochstadt
84eae2b5e3 scheme -> racket in test-engine 2010-06-08 12:34:20 -04:00