summaryrefslogtreecommitdiffstats
path: root/tests/format.test
diff options
context:
space:
mode:
authormdejong <mdejong>2003-03-18 00:55:32 (GMT)
committermdejong <mdejong>2003-03-18 00:55:32 (GMT)
commitb9fc074fd6e4e600d78808c7bb874bc30a7b5d08 (patch)
treef1bc0d489935d2ccb9332fedd9185e271e3a5cf9 /tests/format.test
parent602957805503408b0d8a4596bf51ac469f9e5e01 (diff)
downloadtcl-b9fc074fd6e4e600d78808c7bb874bc30a7b5d08.zip
tcl-b9fc074fd6e4e600d78808c7bb874bc30a7b5d08.tar.gz
tcl-b9fc074fd6e4e600d78808c7bb874bc30a7b5d08.tar.bz2
* tests/format.test: Renumber tests, a bunch of
tests all had the same id.
Diffstat (limited to 'tests/format.test')
-rw-r--r--tests/format.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/format.test b/tests/format.test
index 4050ed3..541176e 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.12 2003/03/14 16:28:07 dkf Exp $
+# RCS: @(#) $Id: format.test,v 1.13 2003/03/18 00:55:33 mdejong Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -93,28 +93,28 @@ test format-2.7 {string formatting, international chars} {
test format-2.8 {string formatting, width} {
format "a%5sa" f
} "a fa"
-test format-2.8 {string formatting, width} {
+test format-2.9 {string formatting, width} {
format "a%-5sa" f
} "af a"
-test format-2.8 {string formatting, width} {
+test format-2.10 {string formatting, width} {
format "a%2sa" foo
} "afooa"
-test format-2.8 {string formatting, width} {
+test format-2.11 {string formatting, width} {
format "a%0sa" foo
} "afooa"
-test format-2.8 {string formatting, precision} {
+test format-2.12 {string formatting, precision} {
format "a%.2sa" foobarbaz
} "afoa"
-test format-2.8 {string formatting, precision} {
+test format-2.13 {string formatting, precision} {
format "a%.sa" foobarbaz
} "aa"
-test format-2.8 {string formatting, precision} {
+test format-2.14 {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.15 {string formatting, width and precision} {
format "a%5.2sa" foobarbaz
} "a foa"
-test format-2.8 {string formatting, width and precision} {
+test format-2.16 {string formatting, width and precision} {
format "a%5.7sa" foobarbaz
} "afoobarba"