Not sure if this is a bug, but it doesn't match the documentation <a href="http://docs.racket-lang.org/plai/plai-scheme.html?q=text/exn&q=provide&q=string-join&q=error&q=repeat&q=string&q=replace&q=define#(form._((lib._plai/main..rkt)._test/exn))">here</a>. It says test/exn only succeeds when the error is explicitly raised by the user, but I try something as simple as:<div>
<br><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><span class="Apple-style-span" style="font-family: 'courier new', monospace; ">"file1.rkt"</span></div>
<div><font class="Apple-style-span" face="'courier new', monospace">(provide foo)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">(define (foo) (error "hello"))</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">"file2.rkt"</font></div><div><font class="Apple-style-span" face="'courier new', monospace">(require plai "file1.rkt")</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">(test/exn (foo) "hello")</font></div></blockquote><div><br></div><div>and the test fails with "no expected value". I can even replace "hello" with a call to error, and see that that argument is never evaluated. So by user-written code, I'm assuming they mean code contained in the same module. Or am I missing something fundamental about Racket's idea of "user-written code"?</div>
<div><br>Jeremy<br>
</div></div>