Well, it does kinda work in the REPL. If you use check-expect in the REPL, then use (test), it will display the results for running the check forms declared _in_ the REPL, just not the ones in the source. It just seems to start with a clean slate.<br>
<br><div class="gmail_quote">On Sun, Sep 18, 2011 at 9:29 PM, Stephen Bloch <span dir="ltr"><<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">
<br><div><div class="im"><div>On Sep 18, 2011, at 9:22 PM, Luke Vilnis wrote:</div><br><blockquote type="cite">Thanks guys, that works! Still, it's pretty confusing that running <font face="'courier new', monospace">(test)</font> from the repl does not work, only inserting it at the end of the file. It would be nice to mention that in the docs, something like:<div>
<br></div><div>"<span style="font-family:serif;background-color:rgb(255, 255, 255);font-size:medium">Note that the check forms only register checks to be performed. The checks are actually run by the <span style="font-family:monospace;white-space:inherit;color:rgb(38, 38, 128)"><a style="text-decoration:none;color:blue">test</a></span> function."</span></div>
<div><font face="serif" size="3"><br></font></div><div>=></div><div><font face="serif" size="3"><br></font></div> <div><font face="serif" size="3"><span style="font-family:arial;font-size:small">"<span style="font-family:serif;background-color:rgb(255, 255, 255);font-size:medium">Note that the check forms only register checks to be performed. The checks are actually run by the <span style="font-family:monospace;white-space:inherit;color:rgb(38, 38, 128)"><a style="text-decoration:none;color:blue">test</a></span> function, which should be called at the end of the file. Using </span></span></font><span style="font-family:serif;background-color:rgb(255, 255, 255);font-size:medium"><span style="font-family:monospace;white-space:inherit;color:rgb(38, 38, 128)"><a style="text-decoration:none;color:blue">test</a></span> in the REPL will not run check forms declared in the definitions</span><span style="font-family:serif;background-color:rgb(255, 255, 255);font-size:medium">."</span></div>
</blockquote><div><br></div></div>An even better answer would be for "test" to WORK in the REPL. I hadn't noticed that it doesn't (although I haven't used test-engine/racket-tests very much). Can somebody who knows explain in small words why it doesn't?</div>
<div class="im"><div><br></div><div><br></div><br><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
Stephen Bloch</div><div><a href="mailto:sbloch@adelphi.edu" target="_blank">sbloch@adelphi.edu</a></div></span></div></div></div></blockquote></div><br>