diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2014-02-09 12:56:24 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2014-02-09 12:56:24 (GMT) |
commit | 0cffbf8eb7de60da060b05ae4a06ff19adc24ad6 (patch) | |
tree | 0928697bf53c4b1c4f196ff654f76d3ae72b2f1c /tests/http.test | |
parent | 334a96f761a2768ff680d31e3cad25eaf63d9bea (diff) | |
download | tcl-0cffbf8eb7de60da060b05ae4a06ff19adc24ad6.zip tcl-0cffbf8eb7de60da060b05ae4a06ff19adc24ad6.tar.gz tcl-0cffbf8eb7de60da060b05ae4a06ff19adc24ad6.tar.bz2 |
starting to write some tests
Diffstat (limited to 'tests/http.test')
-rw-r--r-- | tests/http.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/http.test b/tests/http.test index 45dd393..0f7cd0a 100644 --- a/tests/http.test +++ b/tests/http.test @@ -635,6 +635,32 @@ test http-7.4 {http::formatQuery} -setup { http::config -urlencoding $enc } -result {%3F} +package require -exact tcl::idna 1.0 +test http-idna-1.1 {} -returnCodes error -body { + ::tcl::idna +} -result {wrong # args: should be "::tcl::idna subcommand ?arg ...?"} +test http-idna-1.2 {} -returnCodes error -body { + ::tcl::idna ? +} -result {unknown or ambiguous subcommand "?": must be decode, encode, puny, or version} +test http-idna-1.3 {} -body { + ::tcl::idna version +} -result 1.0 +test http-idna-1.4 {} -returnCodes error -body { + ::tcl::idna version what +} -result {wrong # args: should be "::tcl::idna version"} +test http-idna-1.5 {} -returnCodes error -body { + ::tcl::idna puny +} -result {wrong # args: should be "::tcl::idna puny subcommand ?arg ...?"} +test http-idna-1.6 {} -returnCodes error -body { + ::tcl::idna puny ? +} -result {unknown or ambiguous subcommand "?": must be decode, or encode} +test http-idna-1.7 {} -returnCodes error -body { + ::tcl::idna puny encode +} -result {wrong # args: should be "::tcl::idna puny encode string ?case?"} +test http-idna-1.8 {} -returnCodes error -body { + ::tcl::idna puny decode +} -result {wrong # args: should be "::tcl::idna puny decode string ?case?"} + # cleanup catch {unset url} catch {unset badurl} |