<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Sep 18, 2011, at 8:21 PM, Luke Vilnis wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I was wondering how to get test-engine working with <font class="Apple-style-span" face="'courier new', monospace">#lang</font>, or non-student languages in general. I tried something like this:</div> <div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">#lang racket</font></div><div><font class="Apple-style-span" face="'courier new', monospace">(require test-engine/racket-tests)</font></div> <div><font class="Apple-style-span" face="'courier new', monospace">(check-expect 12 (+ 6 7)) ;;sic</font></div></div><div><br></div><div>But no luck. I also tried it with <font class="Apple-style-span" face="'courier new', monospace">(require test-engine/racket-gui)</font>, but I'm guessing I must be missing something really basic here because I can't even get it to work textually. I type <font class="Apple-style-span" face="'courier new', monospace">(run-tests)</font>, <font class="Apple-style-span" face="'courier new', monospace">(test)</font>, <font class="Apple-style-span" face="'courier new', monospace">(display-results)</font>, pretty much anything I can think of at the repl, and I get nothing. It's as if all my output is going to some hidden buffer somewhere. It works fine (sans the <font class="Apple-style-span" face="'courier new', monospace">require</font>) using HTDP languages, so I don't think it's a problem with my install.</div></blockquote><div><br></div>Did you try (test) at the end of the definitions pane?</div><div><br></div><div>In the student languages, check-expect is given the magical ability to run automatically after a complete pass through everything else. I haven't looked at the code for test-engine/racket-tests, but that version of check-expect is less magical: it still doesn't run immediately (so you can still put test cases for a function ahead of the function's definition), but you have to explicitly say "(test)" to get it to run at all.</div><div><br></div><br><div> <span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Stephen Bloch</div><div><a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a></div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>