You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
522 B
Racket
16 lines
522 B
Racket
9 years ago
|
#lang sugar/debug racket
|
||
9 years ago
|
(require rackunit)
|
||
|
(let ([out (open-output-string)]
|
||
|
[let "something else"]
|
||
|
[local-require "something else entirely"]
|
||
|
[only-in "completely unexpected!"]
|
||
|
[report "well, not really"])
|
||
10 years ago
|
(parameterize ([current-error-port out])
|
||
9 years ago
|
#R5)
|
||
10 years ago
|
(check-equal? (get-output-string out) "5 = 5\n"))
|
||
9 years ago
|
(let ([out (open-output-string)]
|
||
|
[report/line "outta the blue!"])
|
||
10 years ago
|
(parameterize ([current-error-port out])
|
||
9 years ago
|
#RR5)
|
||
9 years ago
|
(check-equal? (get-output-string out) "5 = 5 on line 14\n"))
|