document & test `trim-whitespace?`
parent
242174d482
commit
aa743905a2
@ -1 +1 @@
|
|||||||
1537996006
|
1540870700
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
#lang racket/base
|
||||||
|
(require pollen/setup)
|
||||||
|
(provide (all-defined-out))
|
||||||
|
|
||||||
|
(module setup racket/base
|
||||||
|
(provide (all-defined-out))
|
||||||
|
(define trim-whitespace? #false))
|
@ -0,0 +1,10 @@
|
|||||||
|
#lang pollen
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
one
|
@ -0,0 +1,11 @@
|
|||||||
|
#lang at-exp racket/base
|
||||||
|
(require rackunit pollen/setup racket/runtime-path pollen/render)
|
||||||
|
|
||||||
|
;; define-runtime-path only allowed at top level
|
||||||
|
(define-runtime-path whitespace-dir "data/whitespace")
|
||||||
|
(define-runtime-path whitespace-source "data/whitespace/whitespace-test.txt.pp")
|
||||||
|
|
||||||
|
(parameterize ([current-directory whitespace-dir]
|
||||||
|
[current-project-root whitespace-dir]
|
||||||
|
[current-output-port (open-output-string)])
|
||||||
|
(check-equal? (render whitespace-source) "\n\n\n\n\n\n\n\n\none"))
|
Loading…
Reference in New Issue