hyper-literate/pkgs/scribble-pkgs/scribble-test/tests/scribble/render.rkt
Matthew Flatt 6c624d531e move Scribble tests to "scribble-test"
original commit: ba553a917e3e97c74450859dc13481e2187c55ba
2013-07-18 15:20:51 -06:00

24 lines
805 B
Racket

#lang racket/base
(require scribble/render
scribble/text-render
scribble/core
racket/file
tests/eli-tester)
(provide render-tests)
(module+ main (render-tests))
(define (render-tests)
(dynamic-wind
(λ() (render (list (part #f
null
(list "Render")
(style #f null)
null
(list (paragraph (style #f null) "The content."))
null))
(list "example-for-render-test")
#:render-mixin render-mixin))
(λ() (test (file->string "example-for-render-test.txt")
=> "Render\n\nThe content.\n"))
(λ() (delete-file "example-for-render-test.txt"))))