Commit Graph

104 Commits

Author SHA1 Message Date
Robby Findler
fcfb422294 weeded out some more of the test-docs-complete.rkt files 2011-04-25 21:20:52 -05:00
Robby Findler
7701f75fb0 adjusted test-docs-complete.rkt tests 2011-04-25 19:00:01 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Robby Findler
7f9bd52857 fixed a bug in the way PR 11775 was fixed
related to PR 11775
  pls. merge to release branch
2011-04-21 21:40:04 -05:00
Mike Sperber
2bdb9884d3 Don't pop up test-engine window upon innocent REPL interaction.
Closes PR 11775
2011-03-05 17:48:02 +01:00
Kathy Gray
7758f508c5 Addition of define-wish to the teaching languages and corresponding addition of support for wishes in test reports and check-expects 2011-02-21 12:46:39 +00:00
Robby Findler
90d9256073 change a get-preferences to a preferences:get
closes PR 11667
2011-01-25 20:58:41 -06:00
Robby Findler
1b29fd590b adjusted test-engine to use the framework preferences library so that drracket still starts up when there is a locked preference file under windows 2011-01-20 14:08:33 -06:00
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
43d097cc05 Don't annoy the user with test-engine summaries.
Make sure the test-engine summary is only printed when there's
something new to say.
2010-10-18 10:10:27 +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
Robby Findler
0998934e1e only require mred/mred, not all of scheme/gui (which includes
mred/mred but also lots of stuff from the scheme library)
2010-10-13 15:55:16 -05: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
02cde446cc Unbreak source locations for errors off the REPL in teaching languages.
Make sure we notice when the error source is the REPL, not the
definitions.
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
Eli Barzilay
ee138cf2cb Some repeated "and and"s and "the the"s, and two more typos.
Closes PR 11229.
2010-09-20 15:38:18 -04: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
Eli Barzilay
7dc4d2e5a6 Change a bunch of "~%" and "~n" in format strings to "\n". 2010-08-25 17:17:01 -04:00
Kathy Gray
d3cab0a2ca Refocus window on clicking the error source. 2010-08-23 14:37:43 +01:00
Mike Sperber
450109f061 Merge changes to scheme-tests.rkt into racket-tests.rkt. 2010-07-13 17:15:50 +02:00
Mike Sperber
5f25c239f2 Merge remote branch 'local-plt/master'
Conflicts:
	collects/deinprogramm/define-record-procedures.scm
	collects/test-engine/scheme-tests.rkt
	collects/test-engine/test-display.scm
2010-07-13 17:13:30 +02:00
Carl Eastlund
3d59420133 Made test-engine react gracefully to source file names of unexpected representation. 2010-07-02 16:18:48 -04:00
Mike Sperber
faf8ec358f Rename DMdA/HtDP "contract" to "signature". 2010-06-28 14:58:16 +02:00
Mike Sperber
7269b2a1c1 Fix one of the test-outcome messages. 2010-06-09 10:46:56 +02:00
Sam Tobin-Hochstadt
84eae2b5e3 scheme -> racket in test-engine 2010-06-08 12:34:20 -04:00
Mike Sperber
799d356871 Merge deinprogramm/contract/contract-test-display into test-engine/test-display.scm. 2010-05-20 16:57:46 +02:00
Mike Sperber
5f443141f1 String constants for the remaining untranslated test-engine messages 2010-05-20 16:05:15 +02:00
Mike Sperber
8590e8cadf Merge deinprogramm contract test-engine into the regular one.
This adds support for contracts.
2010-05-20 15:31:45 +02:00
Eli Barzilay
7f6efdc8be A lot of "MrEd" -> "GRacket"s. 2010-05-16 23:46:05 -04:00
Matthew Flatt
eb15dceb34 rackety misc docs 2010-05-07 09:13:51 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Sam Tobin-Hochstadt
c7cb124c95 Put dynamic behavior of `check-expect' into functions.
Give those functions types.

svn: r17519
2010-01-06 23:03:08 +00: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
Kathy Gray
fcbe2cd7d3 Adding check-member-of and check-range
svn: r16045
2009-09-17 15:50:57 +00:00
Kathy Gray
ddb2e106a0 Turning off the nag
svn: r16022
2009-09-16 13:05:54 +00:00
Mike Sperber
ed269cc43b Make the code that says what the effect of a failed check is a tiny bit clearer.
svn: r15970
2009-09-11 08:56:20 +00:00
Mike Sperber
3ca2b0de04 Clarify that the `test' function runs the checks, not the check forms.
svn: r15969
2009-09-11 08:54:58 +00:00
Kathy Gray
07b104e939 Remove trace error and broken implementation
svn: r15956
2009-09-10 14:03:26 +00:00
Robby Findler
d3a3e0cc8c only raise an exception when there is an exception to raise
svn: r15953
2009-09-10 06:40:25 +00:00
Robby Findler
ed18890817 changed exn? to exn:fail? to avoid catching breaks while running test cases
svn: r15952
2009-09-10 06:37:43 +00:00
Kathy Gray
571eb2884a Step one in preparing collects for the removal of profj
svn: r15913
2009-09-08 13:05:13 +00:00
Mike Sperber
89ec442c04 Merge branches/mike/quickcheck:
Add QuickCheck-based property testing to the DeinProgramm/DMdA languages.

svn: r15901
2009-09-07 16:31:18 +00:00
Mike Sperber
e7e65bd4d1 Re-raise check-expect exception after registering the failure, not
before. (PR10402)

svn: r15745
2009-08-15 12:19:39 +00:00
Mike Sperber
28d27a5074 Make sure the test results are displayed, even when an exception
occurs running the tests.

svn: r15724
2009-08-13 06:42:40 +00:00
Kathy Gray
c21afa4bf2 Change to behavior in interactions window. Option 1 implemented.
svn: r15550
2009-07-24 15:52:36 +00:00
Eli Barzilay
a70bf64fd9 Newlines at EOFs
svn: r15380
2009-07-04 02:28:31 +00:00
Mike Sperber
77e4a3aa29 PR 10257
svn: r14957
2009-05-23 12:21:16 +00:00