File: hello.test

package info (click to toggle)
libapache2-mod-rivet 2.3.3-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,156 kB
  • ctags: 1,093
  • sloc: xml: 7,696; tcl: 6,939; ansic: 5,682; sh: 4,862; makefile: 199; sql: 91; lisp: 78
file content (18 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# $Id: hello.test 265289 2003-05-22 10:51:32Z davidw $

set testfilename1 hello.rvt

::tcltest::test hello-1.1 {hello world test} {
    set page [::http::geturl "${urlbase}$testfilename1"]
    regexp -line {^Hello, World$} [::http::data $page] match
    ::http::cleanup $page
    set match
} {Hello, World}

::tcltest::test i18n-1.1 {I18N test} {
    set page [::http::geturl "${urlbase}$testfilename1"]
    regexp -line {^      - El Burro Sabe Ms Que T!$} [::http::data $page] match
    ::http::cleanup $page
    set match
} {      - El Burro Sabe Ms Que T!}