summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-02-24 09:57:07 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-02-24 09:57:07 (GMT)
commit76adf3151bfbab01fe206c3bf2f2d0f8091da188 (patch)
tree654c2b0077466f3dfb5276eb4c87b5fc4998e49e /tests/encoding.test
parent854369a67c1719356d036c3fe11e052a7fe62e80 (diff)
parent1c3c25097b1f63d6b1a0446c2c441833c4ecec11 (diff)
downloadtcl-76adf3151bfbab01fe206c3bf2f2d0f8091da188.zip
tcl-76adf3151bfbab01fe206c3bf2f2d0f8091da188.tar.gz
tcl-76adf3151bfbab01fe206c3bf2f2d0f8091da188.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/encoding.test')
-rw-r--r--tests/encoding.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/encoding.test b/tests/encoding.test
index 87da880..800d93b 100644
--- a/tests/encoding.test
+++ b/tests/encoding.test
@@ -788,10 +788,10 @@ test encoding-24.19 {Parse valid or invalid utf-8} -constraints deprecated -body
} -result ZX\xED\xA0\x80
test encoding-24.20 {Parse with -profile tcl8 but without providing encoding} -body {
encoding convertfrom -profile tcl8 "\x20"
-} -result {wrong # args: should be "::tcl::encoding::convertfrom ? ?-profile profile? ?-failindex var? encoding ? data"} -returnCodes error
+} -result {wrong # args: should be "::tcl::encoding::convertfrom ?-profile profile? ?-failindex var? encoding data" or "::tcl::encoding::convertfrom data"} -returnCodes error
test encoding-24.21 {Parse with -profile tcl8 but without providing encoding} -body {
string length [encoding convertto -profile tcl8 "\x20"]
-} -result {wrong # args: should be "::tcl::encoding::convertto ? ?-profile profile? ?-failindex var? encoding ? data"} -returnCodes error
+} -result {wrong # args: should be "::tcl::encoding::convertto ?-profile profile? ?-failindex var? encoding data" or "::tcl::encoding::convertto data"} -returnCodes error
test encoding-24.22 {Syntax error, two encodings} -body {
encoding convertfrom iso8859-1 utf-8 "ZX\uD800"
} -result {bad option "iso8859-1": must be -profile or -failindex} -returnCodes error