When I use at-exp to build my test data, I found it’ll eat prefix space, it’s a 
bug?

code is here:

#lang at-exp racket/base

(require rackunit/text-ui)

(require rackunit)

(define S string-append)

(define expected @S{


 s

})

(define test-exp
 (test-suite
  "test-exp"

  (test-case 
   "test-exp"

   (check-equal? expected "  \n  \n  s\n  ")

   )

  ))

(run-tests test-exp)


result is here:

actual:     "\n\ns\n"
expected:   "  \n  \n  s\n  “

All the prefix spaces is ‘eaten’.

I search the source, but can’t found the code about the trim.

Can someone help this?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/DBD87EF7-B5D9-416F-B35B-B0904D5D4D7A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to