We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa79884 commit 8c40bb7Copy full SHA for 8c40bb7
2 files changed
typed/debug/test/typed-racket.rkt
@@ -7,5 +7,9 @@
7
8
(define x 5)
9
10
- (check-equal? (ann (report x) : Positive-Byte) 5)
11
- )
+ (define p (open-output-string))
+
12
+ (parameterize ([current-error-port p])
13
+ (check-equal? (ann (report x) : Positive-Byte) 5))
14
15
+ (check-equal? (get-output-string p) "x = 5\n"))
typed/debug/test/typed-with-reader.rkt
@@ -1,6 +1,11 @@
1
#lang debug typed/racket
2
(require typed/debug/report)
3
4
-(define x 2)
5
-(define (f) #R x #R (+ x 4))
6
-#R (f)
+(module+ test
+ (require typed/rackunit)
+ (define x 2)
+ (define (f) #R x #R (+ x 4))
+ #R (f))
+ (check-equal? (get-output-string p) "x = 2\n(+ x 4) = 6\n(f) = 6\n"))
0 commit comments