summaryrefslogtreecommitdiffstats
path: root/tests/format.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-03-27 13:10:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-03-27 13:10:46 (GMT)
commit321344b6749b9c463fc51fb58f8357cb9e53ede3 (patch)
tree9db34fa452371e88502f6804a91675f60ece2186 /tests/format.test
parent6e56c993442b5f7ba73398bc98031f24ef5bb75c (diff)
downloadtcl-321344b6749b9c463fc51fb58f8357cb9e53ede3.zip
tcl-321344b6749b9c463fc51fb58f8357cb9e53ede3.tar.gz
tcl-321344b6749b9c463fc51fb58f8357cb9e53ede3.tar.bz2
Removed test number dups [Bugs 710322, 710327, 710349, 710363]
Diffstat (limited to 'tests/format.test')
-rw-r--r--tests/format.test24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/format.test b/tests/format.test
index 423c476..909c993 100644
--- a/tests/format.test
+++ b/tests/format.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: format.test,v 1.11.2.2 2003/03/14 23:19:45 dkf Exp $
+# RCS: @(#) $Id: format.test,v 1.11.2.3 2003/03/27 13:11:11 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -84,37 +84,37 @@ test format-2.5 {string formatting, embedded nulls} {
test format-2.6 {string formatting, international chars} {
format "%10s" abc\ufeffdef
} " abc\ufeffdef"
-test format-2.6 {string formatting, international chars} {
+test format-2.7 {string formatting, international chars} {
format "%.5s" abc\ufeffdef
} "abc\ufeffd"
-test format-2.7 {string formatting, international chars} {
+test format-2.8 {string formatting, international chars} {
format "foo\ufeffbar%s" baz
} "foo\ufeffbarbaz"
-test format-2.8 {string formatting, width} {
+test format-2.9 {string formatting, width} {
format "a%5sa" f
} "a fa"
-test format-2.8 {string formatting, width} {
+test format-2.10 {string formatting, width} {
format "a%-5sa" f
} "af a"
-test format-2.8 {string formatting, width} {
+test format-2.11 {string formatting, width} {
format "a%2sa" foo
} "afooa"
-test format-2.8 {string formatting, width} {
+test format-2.12 {string formatting, width} {
format "a%0sa" foo
} "afooa"
-test format-2.8 {string formatting, precision} {
+test format-2.13 {string formatting, precision} {
format "a%.2sa" foobarbaz
} "afoa"
-test format-2.8 {string formatting, precision} {
+test format-2.14 {string formatting, precision} {
format "a%.sa" foobarbaz
} "aa"
-test format-2.8 {string formatting, precision} {
+test format-2.15 {string formatting, precision} {
list [catch {format "a%.-2sa" foobarbaz} msg] $msg
} {1 {bad field specifier "-"}}
-test format-2.8 {string formatting, width and precision} {
+test format-2.16 {string formatting, width and precision} {
format "a%5.2sa" foobarbaz
} "a foa"
-test format-2.8 {string formatting, width and precision} {
+test format-2.17 {string formatting, width and precision} {
format "a%5.7sa" foobarbaz
} "afoobarba"