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">&lt;<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a>&gt;</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&#39;s pretty confusing that running <font face="&#39;courier new&#39;, 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>&quot;<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.&quot;</span></div>
 <div><font face="serif" size="3"><br></font></div><div>=&gt;</div><div><font face="serif" size="3"><br></font></div> <div><font face="serif" size="3"><span style="font-family:arial;font-size:small">&quot;<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">.&quot;</span></div>
</blockquote><div><br></div></div>An even better answer would be for &quot;test&quot; to WORK in the REPL.  I hadn&#39;t noticed that it doesn&#39;t (although I haven&#39;t used test-engine/racket-tests very much).  Can somebody who knows explain in small words why it doesn&#39;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>