racket/collects/web-server/tests/servlet/web-test.ss
Eli Barzilay 7d50e61c7f * Newlines at EOFs
* Another big chunk of v4-require-isms
* Allow `#lang framework/keybinding-lang' for keybinding files
* Move hierlist sources into "mrlib/hierlist", leave stub behind

svn: r10689
2008-07-09 07:18:06 +00:00

19 lines
514 B
Scheme

#lang scheme/base
(require (planet "test.ss" ("schematics" "schemeunit.plt" 2))
net/url
web-server/servlet/web)
(provide web-tests)
(define url0 (string->url "http://test.com/servlets/example.ss"))
(define web-tests
(test-suite
"Web"
(test-suite
"continuation-url? and embed-ids"
(test-false "not k-url" (continuation-url? url0))
(test-equal? "identity"
(continuation-url? (string->url (embed-ids (list 1 2 3) url0)))
(list 1 2 3)))))