debug-meta-lang: make (require sugar/debug) unnecessary
#6
Merged
AlexKnauth
merged 1 commits from debug-meta-lang
into master
10 years ago
@ -1,10 +1,15 @@
|
||||
#lang sugar/debug/lang racket
|
||||
(require sugar/debug rackunit)
|
||||
(let ([out (open-output-string)])
|
||||
(require rackunit)
|
||||
(let ([out (open-output-string)]
|
||||
[let "something else"]
|
||||
[local-require "something else entirely"]
|
||||
[only-in "completely unexpected!"]
|
||||
[report "well, not really"])
|
||||
(parameterize ([current-error-port out])
|
||||
#^5)
|
||||
(check-equal? (get-output-string out) "5 = 5\n"))
|
||||
(let ([out (open-output-string)])
|
||||
(let ([out (open-output-string)]
|
||||
[report/line "outta the blue!"])
|
||||
(parameterize ([current-error-port out])
|
||||
#^^5)
|
||||
(check-equal? (get-output-string out) "5 = 5 on line 9\n"))
|
||||
(check-equal? (get-output-string out) "5 = 5 on line 14\n"))
|
||||
|
Loading…
Reference in New Issue