Merge pull request #8 from AlexKnauth/patch-1

#lang sugar/debug: use #^ instead of ^
pull/10/head
Matthew Butterick 9 years ago
commit 39800fcc4e

@ -16,7 +16,7 @@
(define (make-debug-readtable [rt (current-readtable)])
(make-readtable rt
#\^ 'non-terminating-macro report-proc))
#\^ 'dispatch-macro report-proc))
(define (wrap-reader reader)
@ -81,4 +81,4 @@
(lambda (key defval)
(define (fallback) (if proc (proc key defval) defval))
(case key
[else (fallback)]))))))
[else (fallback)]))))))

@ -6,10 +6,10 @@
[only-in "completely unexpected!"]
[report "well, not really"])
(parameterize ([current-error-port out])
^5)
#^5)
(check-equal? (get-output-string out) "5 = 5\n"))
(let ([out (open-output-string)]
[report/line "outta the blue!"])
(parameterize ([current-error-port out])
^^5)
#^^5)
(check-equal? (get-output-string out) "5 = 5 on line 14\n"))

Loading…
Cancel
Save