diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-03-14 15:34:42 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-03-14 15:34:42 (GMT) |
commit | 87b3bcc550bf664f70450f509faabb9584062890 (patch) | |
tree | c4dc5f438f9d9b2323e061ac33c9ec25d10862d2 /library/tcltest | |
parent | 95158a2d57b3724c868c22025657b56c2812f4d5 (diff) | |
parent | b05b4cf94847c0a1efaf867e3048437e2261e030 (diff) | |
download | tcl-87b3bcc550bf664f70450f509faabb9584062890.zip tcl-87b3bcc550bf664f70450f509faabb9584062890.tar.gz tcl-87b3bcc550bf664f70450f509faabb9584062890.tar.bz2 |
Merge 8.7
Diffstat (limited to 'library/tcltest')
-rw-r--r-- | library/tcltest/pkgIndex.tcl | 2 | ||||
-rw-r--r-- | library/tcltest/tcltest.tcl | 13 |
2 files changed, 5 insertions, 10 deletions
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]" } |