typed-racket/typed-racket-test/succeed/custom-printer.rkt
Asumu Takikawa 527b233e45 Remove pconvert dependency in tests
The test just tests whether struct properties
work and it's not important what the precise
property is.
2016-06-21 16:43:38 -04:00

10 lines
431 B
Racket

#lang typed/racket
;; This test ensures that there is some way to customize struct
;; printouts -- if properties are removed or changed, there should be
;; some way to do something equivalent to what's done in this test.
(struct: foo ()
#:property prop:custom-print-quotable 'never
#:property prop:custom-write (λ (x p w?) (display "#foo" p)))
(unless (equal? "#foo #foo" (format "~a ~s" (foo) (foo)))
(error "bad output"))