<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>This doesn’t exactly solve your problem, but what happens (for both cases) when you do this?:</div><div><div><font face="Courier New">#lang racket</font></div><div><font face="Courier New">(require test-engine/racket-tests)</font></div><div><font face="Courier New">(display "(format \"~n\") = ") (format "~n")</font></div><div><font face="Courier New">(display "\"") (newline)</font></div><div><font face="Courier New">(display "\" = ") "</font></div><div><font face="Courier New">"</font></div><div><font face="Courier New">(check-expect (format "~n") "</font></div><div><font face="Courier New">")</font></div><div><font face="Courier New">(test)</font></div><div><font face="Courier New">(void (read-line)) ; wait until the user has read the results.</font></div></div><br><div><div>On Jun 20, 2014, at 3:02 PM, Jos Koot <<a href="mailto:jos.koot@gmail.com">jos.koot@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Running the following in DrRacket goes well.<br><br>#lang racket<br>(require test-engine/racket-tests)<br>(check-expect (format "~n") "<br>")<br>(test)<br>(read-line) ; wait until the user has read the results.<br><br>Displays: The only test passed!<br><br>But running the same with Racket tells me the test fails.<br>I have a solution for this by removing #\return from the strings to be<br>compared.<br><br>Question though: Can I solve this problem in a simpler way?<br>May be I overlooked something in the docs?<br><br>Best wishes, Jos<br><br><br>____________________<br>  Racket Users list:<br>  <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></body></html>