diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-19 17:01:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-19 17:01:40 (GMT) |
commit | 22657ad365387756101eef242c94c8989688955c (patch) | |
tree | 95c72304e293323e70edc353bd97a6d28a11a042 /tests/encoding.test | |
parent | 02838226febd8e93a6b8ba05bb7d45749d2b2ed4 (diff) | |
download | tcl-22657ad365387756101eef242c94c8989688955c.zip tcl-22657ad365387756101eef242c94c8989688955c.tar.gz tcl-22657ad365387756101eef242c94c8989688955c.tar.bz2 |
New proposal: Allow "-strict" immediately before or after "-failindex var".
Diffstat (limited to 'tests/encoding.test')
-rw-r--r-- | tests/encoding.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/encoding.test b/tests/encoding.test index a1d129e..095672c 100644 --- a/tests/encoding.test +++ b/tests/encoding.test @@ -681,10 +681,10 @@ test encoding-24.21 {Parse with -nocomplain but without providing encoding} { } 1 test encoding-24.22 {Syntax error, two encodings} -body { encoding convertfrom iso8859-1 utf-8 "ZX\uD800" -} -returnCodes 1 -result {wrong # args: should be "::tcl::encoding::convertfrom ?-nocomplain|-strict|-failindex var? ?encoding? data"} +} -returnCodes 1 -result {wrong # args: should be "::tcl::encoding::convertfrom ?-nocomplain|?-strict? ?-failindex var?? ?encoding? data"} test encoding-24.23 {Syntax error, two encodings} -body { encoding convertto iso8859-1 utf-8 "ZX\uD800" -} -returnCodes 1 -result {wrong # args: should be "::tcl::encoding::convertto ?-nocomplain|-strict|-failindex var? ?encoding? data"} +} -returnCodes 1 -result {wrong # args: should be "::tcl::encoding::convertto ?-nocomplain|?-strict? ?-failindex var?? ?encoding? data"} test encoding-24.24 {Parse invalid utf-8 with -strict} -body { encoding convertfrom -strict utf-8 "\xC0\x80\x00\x00" } -returnCodes 1 -result {unexpected byte sequence starting at index 0: '\xC0'} |