diff options
author | dgp <dgp@noemail.net> | 2003-10-08 15:24:21 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-10-08 15:24:21 (GMT) |
commit | e7f8c5253c54fbc3e758f20bbf2cebc84cbb3ad8 (patch) | |
tree | 1b44469ff73c01368c9ddaa2b435c8eaf1f323be /tests/utf.test | |
parent | 277dbd36567847ef4ac92aff79e2caa389ef4375 (diff) | |
download | tcl-e7f8c5253c54fbc3e758f20bbf2cebc84cbb3ad8.zip tcl-e7f8c5253c54fbc3e758f20bbf2cebc84cbb3ad8.tar.gz tcl-e7f8c5253c54fbc3e758f20bbf2cebc84cbb3ad8.tar.bz2 |
Added constraint to the new tests.
FossilOrigin-Name: e697dfc73919e826b9279ce5e73707193f151b6a
Diffstat (limited to 'tests/utf.test')
-rw-r--r-- | tests/utf.test | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/utf.test b/tests/utf.test index 94f99e8..56a3acb 100644 --- a/tests/utf.test +++ b/tests/utf.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: utf.test,v 1.11 2003/10/08 14:24:41 dkf Exp $ +# RCS: @(#) $Id: utf.test,v 1.12 2003/10/08 15:24:21 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -58,28 +58,29 @@ test utf-2.8 {Tcl_UtfToUniChar: longer UTF sequences not supported} { test utf-3.1 {Tcl_UtfCharComplete} { } {} -test utf-4.1 {Tcl_NumUtfChars: zero length} { +testConstraint testnumutfchars [llength [info commands testnumutfchars]] +test utf-4.1 {Tcl_NumUtfChars: zero length} testnumutfchars { testnumutfchars "" } {0} -test utf-4.2 {Tcl_NumUtfChars: length 1} { +test utf-4.2 {Tcl_NumUtfChars: length 1} testnumutfchars { testnumutfchars [bytestring "\xC2\xA2"] } {1} -test utf-4.3 {Tcl_NumUtfChars: long string} { +test utf-4.3 {Tcl_NumUtfChars: long string} testnumutfchars { testnumutfchars [bytestring "abc\xC2\xA2\xe4\xb9\x8e\uA2\u4e4e"] } {7} -test utf-4.4 {Tcl_NumUtfChars: #u0000} { +test utf-4.4 {Tcl_NumUtfChars: #u0000} testnumutfchars { testnumutfchars [bytestring "\xC0\x80"] } {1} -test utf-4.5 {Tcl_NumUtfChars: zero length, calc len} { +test utf-4.5 {Tcl_NumUtfChars: zero length, calc len} testnumutfchars { testnumutfchars "" 1 } {0} -test utf-4.6 {Tcl_NumUtfChars: length 1, calc len} { +test utf-4.6 {Tcl_NumUtfChars: length 1, calc len} testnumutfchars { testnumutfchars [bytestring "\xC2\xA2"] 1 } {1} -test utf-4.7 {Tcl_NumUtfChars: long string, calc len} { +test utf-4.7 {Tcl_NumUtfChars: long string, calc len} testnumutfchars { testnumutfchars [bytestring "abc\xC2\xA2\xe4\xb9\x8e\uA2\u4e4e"] 1 } {7} -test utf-4.8 {Tcl_NumUtfChars: #u0000, calc len} { +test utf-4.8 {Tcl_NumUtfChars: #u0000, calc len} testnumutfchars { testnumutfchars [bytestring "\xC0\x80"] 1 } {1} |