summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-03-14 15:34:42 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-03-14 15:34:42 (GMT)
commit87b3bcc550bf664f70450f509faabb9584062890 (patch)
treec4dc5f438f9d9b2323e061ac33c9ec25d10862d2 /library
parent95158a2d57b3724c868c22025657b56c2812f4d5 (diff)
parentb05b4cf94847c0a1efaf867e3048437e2261e030 (diff)
downloadtcl-87b3bcc550bf664f70450f509faabb9584062890.zip
tcl-87b3bcc550bf664f70450f509faabb9584062890.tar.gz
tcl-87b3bcc550bf664f70450f509faabb9584062890.tar.bz2
Merge 8.7
Diffstat (limited to 'library')
-rw-r--r--library/manifest.txt2
-rw-r--r--library/tcltest/pkgIndex.tcl2
-rw-r--r--library/tcltest/tcltest.tcl13
3 files changed, 6 insertions, 11 deletions
diff --git a/library/manifest.txt b/library/manifest.txt
index cc1e223..5a999f4 100644
--- a/library/manifest.txt
+++ b/library/manifest.txt
@@ -12,7 +12,7 @@ apply {{dir} {
0 tcl::idna 1.0.1 {cookiejar idna.tcl}
0 platform 1.0.19 {platform platform.tcl}
0 platform::shell 1.1.4 {platform shell.tcl}
- 1 tcltest 2.5.5 {tcltest tcltest.tcl}
+ 1 tcltest 2.5.6 {tcltest tcltest.tcl}
} {
if {$isafe && !$safe} continue
package ifneeded $package $version [list source [file join $dir {*}$file]]
diff --git a/library/tcltest/pkgIndex.tcl b/library/tcltest/pkgIndex.tcl
index 18b05e5..9903e32 100644
--- a/library/tcltest/pkgIndex.tcl
+++ b/library/tcltest/pkgIndex.tcl
@@ -9,4 +9,4 @@
# full path name of this file's directory.
if {![package vsatisfies [package provide Tcl] 8.5-]} {return}
-package ifneeded tcltest 2.5.5 [list source [file join $dir tcltest.tcl]]
+package ifneeded tcltest 2.5.6 [list source [file join $dir tcltest.tcl]]
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 9ca7b09..dbe1eae 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -22,7 +22,7 @@ namespace eval tcltest {
# When the version number changes, be sure to update the pkgIndex.tcl file,
# and the install directory in the Makefiles. When the minor version
# changes (new feature) be sure to update the man page as well.
- variable Version 2.5.5
+ variable Version 2.5.6
# Compatibility support for dumb variables defined in tcltest 1
# Do not use these. Call [package provide Tcl] and [info patchlevel]
@@ -1134,7 +1134,6 @@ proc tcltest::SafeFetch {n1 n2 op} {
}
}
-
# tcltest::Asciify --
#
# Transforms the passed string to contain only printable ascii characters.
@@ -1156,9 +1155,9 @@ proc tcltest::Asciify {s} {
set i [scan $c %c]
if {[string is print $c] && ($i <= 127)} {
append print $c
- } elseif {$i <= 0xff} {
+ } elseif {$i <= 0xFF} {
append print \\x[format %02X $i]
- } elseif {$i <= 0xffff} {
+ } elseif {$i <= 0xFFFF} {
append print \\u[format %04X $i]
} else {
append print \\U[format %08X $i]
@@ -2254,11 +2253,7 @@ proc tcltest::test {name description args} {
if {$scriptCompare} {
puts [outputChannel] "---- Error testing result: $scriptMatch"
} else {
- try {
- puts [outputChannel] "---- Result was:\n[Asciify $actualAnswer]"
- } on error {errMsg errCode} {
- puts [outputChannel] "---- Result was:\n<error printing result: $errMsg ($errCode)>"
- }
+ puts [outputChannel] "---- Result was:\n[Asciify $actualAnswer]"
puts [outputChannel] "---- Result should have been\
($match matching):\n[Asciify $result]"
}