add #lang tests

pull/27/head
Matthew Butterick 10 years ago
parent 1c893f6af1
commit 11483ba447

@ -1,5 +1,5 @@
#lang racket/base
(require rackunit)
(require rackunit racket/port racket/system)
(module test-default pollen
@ -32,3 +32,11 @@
(check-equal? ptree:doc '(pagetree-root (index (brother sister))))
(define (run file)
(with-output-to-string (λ() (system (format "racket ~a" file)))))
(check-equal? (run "test.ptree") "'(pagetree-root test ====)")
(check-equal? (run "test.html.pm") "'(root \"test\" \"\\n\" \"====\")")
(check-equal? (run "test.html.pmd") "'(root (h1 ((id \"test\")) \"test\"))")
(check-equal? (run "test.html.pp") "test\n====")
(check-equal? (run "test.no-ext") "test\n====")

@ -0,0 +1,4 @@
#lang pollen
test
====

@ -0,0 +1,4 @@
#lang pollen
test
====

@ -0,0 +1,4 @@
#lang pollen
test
====

@ -0,0 +1,4 @@
#lang pollen
test
====

@ -0,0 +1,4 @@
#lang pollen
test
====
Loading…
Cancel
Save