aboutsummaryrefslogtreecommitdiff
path: root/test.tcl
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-01 22:07:42 +0000
committerantirez <antirez>2005-03-01 22:07:42 +0000
commit28dcfe5d0b45b4be1071677ab65f80f4fe4a2ee2 (patch)
tree0e175f287a4f6943f225c653801661c2e722de89 /test.tcl
parentf4e0dec77a6566d063d7a56bca4276fb484ed2ac (diff)
downloadjimtcl-28dcfe5d0b45b4be1071677ab65f80f4fe4a2ee2.zip
jimtcl-28dcfe5d0b45b4be1071677ab65f80f4fe4a2ee2.tar.gz
jimtcl-28dcfe5d0b45b4be1071677ab65f80f4fe4a2ee2.tar.bz2
removed a C99-ism
Diffstat (limited to 'test.tcl')
-rw-r--r--test.tcl18
1 files changed, 17 insertions, 1 deletions
diff --git a/test.tcl b/test.tcl
index 4598387..92cfb88 100644
--- a/test.tcl
+++ b/test.tcl
@@ -1178,6 +1178,8 @@ proc unknown args {
error "unknown failed"
}
+rename unknown {}
+
#test unknown-4.1 {errors in "unknown" procedure} {
# list [catch {non-existent a b} msg] $msg $errorCode
#} {1 {unknown failed} NONE}
@@ -2108,7 +2110,7 @@ catch {unset a}
catch {unset x}
################################################################################
-# STRING MATCH #
+# STRING
################################################################################
## string match
@@ -2313,6 +2315,20 @@ test string-11.49 {string match, *special case} {
# foo
#} 0
+## string length
+##
+test string-9.1 {string length} {
+ proc foo {} {string length}
+ list [catch {foo} msg] $msg
+} {1 {wrong # args: should be "string length string"}}
+test string-9.2 {string length} {
+ proc foo {} {string length a b}
+ list [catch {foo} msg] $msg
+} {1 {wrong # args: should be "string length string"}}
+test string-9.3 {string length} {
+ proc foo {} {string length "a little string"}
+ foo
+} 15
################################################################################
# FINAL REPORT