[racket] newlines in strings not the same in DrRacket and Racket

From: Jos Koot (jos.koot at gmail.com)
Date: Fri Jun 20 15:02:16 EDT 2014

Running the following in DrRacket goes well.

#lang racket
(require test-engine/racket-tests)
(check-expect (format "~n") "
")
(test)
(read-line) ; wait until the user has read the results.

Displays: The only test passed!

But running the same with Racket tells me the test fails.
I have a solution for this by removing #\return from the strings to be
compared.

Question though: Can I solve this problem in a simpler way?
May be I overlooked something in the docs?

Best wishes, Jos



Posted on the users mailing list.