whitespacer
parent
daacd970d1
commit
8b1c707e67
@ -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