summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-04-15 22:41:40 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-04-15 22:41:40 (GMT)
commit4812bb5b2d273de7fa5c07a1a8450a5dfa5e5803 (patch)
tree7cc942aecf940691248e58cb9905c2e4b5a0d736 /tests/encoding.test
parent4b3cad67669ee24ba10a1b95e9f8c91747b1d11b (diff)
downloadtcl-4812bb5b2d273de7fa5c07a1a8450a5dfa5e5803.zip
tcl-4812bb5b2d273de7fa5c07a1a8450a5dfa5e5803.tar.gz
tcl-4812bb5b2d273de7fa5c07a1a8450a5dfa5e5803.tar.bz2
* tests/unixInit.test: Disabled obsolete tests and removed code
* tests/encoding.test: that supported them. * generic/tclInterp.c:
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index 897bebf..b62b604 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: encoding.test,v 1.21 2004/11/30 19:34:51 dgp Exp $
+# RCS: @(#) $Id: encoding.test,v 1.22 2005/04/15 22:41:44 dgp Exp $
package require tcltest 2
namespace import -force ::tcltest::*
@@ -556,6 +556,19 @@ foreach from {cp932 shiftjis euc-jp iso2022-jp} {
}
}
+testConstraint testgetdefenc [llength [info commands testgetdefenc]]
+
+test encoding-26.0 {Tcl_GetDefaultEncodingDir} -constraints {
+ testgetdefenc
+} -setup {
+ set origDir [testgetdefenc]
+ testsetdefenc slappy
+} -body {
+ testgetdefenc
+} -cleanup {
+ testsetdefenc $origDir
+} -result slappy
+
file delete {expand}[glob -directory [temporaryDirectory] *.chars *.tcltestout]
# ===> Cut here <===