Commit Graph

122 Commits

Author SHA1 Message Date
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Eli Barzilay
39a0ab60a7 Some more #lang racket' -> #lang racket/base' conversions
(And some other related minor racketisms.)
2012-11-07 08:03:44 -05:00
Robby Findler
6ca79d56fa fix check-error so it compares the rewritten error messages,
not the raw error messages
2012-08-31 20:52:48 -05:00
Robby Findler
87a8f70148 adjust check-expect so it rewrites the error messages
like they are rewritten in the repl

closes PR 12943
2012-07-30 04:19:06 -05:00
Robby Findler
be2c7d7ada finish removing the check-expect dock/undock menu items 2012-07-24 10:18:28 -05:00
Robby Findler
83bae29b21 remove the "dock/undock test report" menu items from the show menu
(there are buttons in the window and this isn't really a show menu
type of thing)
2012-07-17 13:07:41 -05:00
Matthew Flatt
3662aee60b *SL: fix `check-expect' syntax checking
Bug introduced during error-message conversion.
2012-07-01 09:25:12 -06:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
Sam Tobin-Hochstadt
fdb4ab7025 Handle `check-expect' in non-application form.
Closes PR 12710.
2012-04-19 12:50:25 -04:00
Robby Findler
462a348f19 fix bugs in the way the Racket|Disable Tests menu item worked
also adjust the test-engine-test.rkt test suite to bring it into
sync with the changes to the way the DrRacket REPL works from
commit bfa6b1d953
2011-11-28 00:13:59 -06:00
Mike Sperber
bbb38c0ff9 Report signature violations in the REPL.
In the course of this, revamp the logic that controls when the
test-results window pops up and when it doesn't.

Closes PR 12185
2011-09-14 22:00:42 +02:00
Matthias Felleisen
710404fd47 fixing scribble docs for check-*, step 2 2011-09-06 20:53:12 -04:00
Matthias Felleisen
6f04fe3433 fixing scribble docs for check-* 2011-09-06 20:53:12 -04:00
Matthias Felleisen
a74ce9d7b2 fixed docs for check-member-of and check-range 2011-09-06 15:12:38 -04:00
Eli Barzilay
d61eb53686 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).
2011-08-15 07:50:04 -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
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
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