File: makeurl.test

package info (click to toggle)
libapache2-mod-rivet 3.2.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,296 kB
  • sloc: xml: 8,554; tcl: 7,568; ansic: 7,094; sh: 5,017; makefile: 195; sql: 91; lisp: 78
file content (22 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id$

set testfilename1 makeurl.rvt

::tcltest::test makeurl-1.1 {makeurl} {
    set page [ ::http::geturl "${urlbase}${testfilename1}?urltype=absolute" ]
    set match [string trim [ ::http::data $page ]]
    set match
} {http://localhost:8081/foo}

::tcltest::test makeurl-1.2 {makeurl} {
    set page [ ::http::geturl "${urlbase}${testfilename1}?urltype=relative" ]
    set match [string trim [ ::http::data $page ]]
    set match
} {http://localhost:8081/makeurl.rvt/foo/}

::tcltest::test makeurl-1.3 {makeurl} {
    set page [ ::http::geturl "${urlbase}${testfilename1}" ]
    set match [string trim [ ::http::data $page ]]
    set match
} {http://localhost:8081/makeurl.rvt}