racket/collects/web-server/tests/configuration/configuration-table-test.ss
Jay McCarthy 6f4bbf80d1 Adding tests and fixing things
svn: r6454
2007-06-01 22:52:44 +00:00

20 lines
790 B
Scheme

(module configuration-table-test mzscheme
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
(lib "file.ss")
(lib "configuration-table.ss" "web-server" "configuration")
(lib "web-config-unit.ss" "web-server"))
(provide configuration-table-tests)
(define configuration-table-tests
(test-suite
"Configuration Table"
(test-case
"Default configuration file may be parsed"
(check-not-false (read-configuration-table default-configuration-table-path)))
(test-case
"Default configuration file may be written"
(check-not-false (write-configuration-table
(read-configuration-table default-configuration-table-path)
(make-temporary-file)))))))