summaryrefslogtreecommitdiffstats
path: root/tests/format.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-26 10:20:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-26 10:20:32 (GMT)
commitb1c5e807caef3b44a6d22bbbff571c8d2c31c278 (patch)
treec5a6c614c43ac473b8b162ceae9fbbf99d2c06ec /tests/format.test
parent2bd7095b873e14982c860118b27caeeb0af6085e (diff)
parentcf30ba443c8cdaf39b5b960d78894955dc71beed (diff)
downloadtcl-b1c5e807caef3b44a6d22bbbff571c8d2c31c278.zip
tcl-b1c5e807caef3b44a6d22bbbff571c8d2c31c278.tar.gz
tcl-b1c5e807caef3b44a6d22bbbff571c8d2c31c278.tar.bz2
Rebase branch "jn-0d-radix-prefix" back to trunk. No new changes
Diffstat (limited to 'tests/format.test')
-rw-r--r--tests/format.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/format.test b/tests/format.test
index 094b7b3..9d75c58 100644
--- a/tests/format.test
+++ b/tests/format.test
@@ -80,14 +80,14 @@ test format-1.12 {integer formatting} {
format "%b %#b %#b %llb" 5 0 5 [expr {2**100}]
} {101 0b0 0b101 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000}
test format-1.13 {integer formatting} {
- format "%#d %#d %#d %#d %#d" 0 6 34 16923 -12 -1
+ format "%#0d %#0d %#0d %#0d %#0d" 0 6 34 16923 -12 -1
} {0d0 0d6 0d34 0d16923 -0d12}
test format-1.14 {integer formatting} {
- format "%#5d %#20d %#20d %#20d %#20d" 0 6 34 16923 -12 -1
-} { 0d0 0d6 0d34 0d16923 -0d12}
+ format "%#05d %#020d %#020d %#020d %#020d" 0 6 34 16923 -12 -1
+} {0d000 0d000000000000000006 0d000000000000000034 0d000000000000016923 -0d00000000000000012}
test format-1.15 {integer formatting} {
- format "%-#5d %-#20d %-#20d %-#20d %-#20d" 0 6 34 16923 -12 -1
-} {0d0 0d6 0d34 0d16923 -0d12 }
+ format "%-#05d %-#020d %-#020d %-#020d %-#020d" 0 6 34 16923 -12 -1
+} {0d000 0d000000000000000006 0d000000000000000034 0d000000000000016923 -0d00000000000000012}
test format-2.1 {string formatting} {