summaryrefslogtreecommitdiff
path: root/tcl/tests/split.test
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/tests/split.test')
-rw-r--r--tcl/tests/split.test23
1 files changed, 22 insertions, 1 deletions
diff --git a/tcl/tests/split.test b/tcl/tests/split.test
index 7a1cd45c5d1..54aa0b949d1 100644
--- a/tcl/tests/split.test
+++ b/tcl/tests/split.test
@@ -6,13 +6,17 @@
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
+# Copyright (c) 1998-1999 by Scriptics Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# RCS: @(#) $Id$
-if {[string compare test [info procs test]] == 1} then {source defs}
+if {[lsearch [namespace children] ::tcltest] == -1} {
+ package require tcltest
+ namespace import -force ::tcltest::*
+}
test split-1.1 {basic split commands} {
split "a\n b\t\r c\n "
@@ -63,3 +67,20 @@ test split-2.1 {split errors} {
test split-2.2 {split errors} {
list [catch {split a b c} msg] $msg $errorCode
} {1 {wrong # args: should be "split string ?splitChars?"} NONE}
+
+# cleanup
+::tcltest::cleanupTests
+return
+
+
+
+
+
+
+
+
+
+
+
+
+