Merge pull request #6 from AlexKnauth/debug-meta-lang
debug-meta-lang: make (require sugar/debug) unnecessarypull/8/head
commit
ecce73cdc3
@ -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