diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-16 11:11:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-16 11:11:23 (GMT) |
commit | 999decddb383b6dbe467570cb9e3997a48286fa2 (patch) | |
tree | 7b22a7235f69cb59f2f2bdee892d7e27dbb8817f /tests | |
parent | 3001f870632e5d152e76bbc599fea7b27d79b2af (diff) | |
download | tcl-999decddb383b6dbe467570cb9e3997a48286fa2.zip tcl-999decddb383b6dbe467570cb9e3997a48286fa2.tar.gz tcl-999decddb383b6dbe467570cb9e3997a48286fa2.tar.bz2 |
Fix [22324bcbd]: string reverse is broken for Emoji. Thanks to Chrisian Werner for bug report and POC patch.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/string.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/string.test b/tests/string.test index 3ac3060..66eb6ad 100644 --- a/tests/string.test +++ b/tests/string.test @@ -1828,19 +1828,19 @@ test string-24.15 {string reverse command - pure bytearray} { binary scan [tcl::string::reverse [binary format H* 010203]] H* x set x } 030201 -test string-24.16 {string reverse command - surrogates} knownBug { +test string-24.16 {string reverse command - surrogates} { string reverse \u0444bulb\uD83D\uDE02 } \uD83D\uDE02blub\u0444 -test string-24.17 {string reverse command - surrogates} knownBug { +test string-24.17 {string reverse command - surrogates} { string reverse \uD83D\uDE02hello\uD83D\uDE02 } \uD83D\uDE02olleh\uD83D\uDE02 -test string-24.18 {string reverse command - surrogates} knownBug { +test string-24.18 {string reverse command - surrogates} { set s \u0444bulb\uD83D\uDE02 # shim shimmery ... string index $s 0 string reverse $s } \uD83D\uDE02blub\u0444 -test string-24.19 {string reverse command - surrogates} knownBug { +test string-24.19 {string reverse command - surrogates} { set s \uD83D\uDE02hello\uD83D\uDE02 # shim shimmery ... string index $s 0 |