racket/collects/web-server/tests/configuration/configuration-table-test.ss
Jay McCarthy d9a2d52490 converting to scheme/base
svn: r7826
2007-11-23 23:58:36 +00:00

28 lines
979 B
Scheme

#lang scheme/base
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
(only-in (lib "file.ss")
make-temporary-file)
(lib "configuration-table.ss" "web-server" "configuration"))
(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))))
(test-case
"Default configuration file may be converted to sexpr and back"
(check-not-false
(sexpr->configuration-table
(configuration-table->sexpr
(read-configuration-table
default-configuration-table-path)))))))