diff options
| author | dgp <dgp@users.sourceforge.net> | 2020-04-07 19:52:15 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2020-04-07 19:52:15 (GMT) |
| commit | e3ec61b93b66246ae5cf63706bdd4a89fc9f0876 (patch) | |
| tree | baa06b11f1eebf2430a0e6cbdb4352d7270c7223 | |
| parent | 38179215a43e8ba972f4f6baebf2aef347682b53 (diff) | |
| download | tcl-e3ec61b93b66246ae5cf63706bdd4a89fc9f0876.zip tcl-e3ec61b93b66246ae5cf63706bdd4a89fc9f0876.tar.gz tcl-e3ec61b93b66246ae5cf63706bdd4a89fc9f0876.tar.bz2 | |
More tests that should continue to demo faults in Tcl_UtfPrev after
[string trimright] implementation is improved.
| -rw-r--r-- | tests/utf.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/utf.test b/tests/utf.test index 5d67b36..de529a6 100644 --- a/tests/utf.test +++ b/tests/utf.test @@ -164,6 +164,29 @@ test utf-7.23 {Tcl_UtfPrev} { string trimright [bytestring A\xA0\xA0\xA0\xA0] X } [bytestring A\xA0\xA0\xA0\xA0] +test utf-7.24 {Tcl_UtfPrev} { + string trimright [bytestring A\xF8\xA0] [bytestring \xF8] +} [bytestring A\xF8\xA0] +test utf-7.25 {Tcl_UtfPrev} { + string trimright [bytestring A\xF4\xA0] [bytestring \xF4] +} [bytestring A\xF4\xA0] +test utf-7.26 {Tcl_UtfPrev} { + string trimright [bytestring A\xE8\xA0] [bytestring \xE8] +} [bytestring A\xE8\xA0] +test utf-7.27 {Tcl_UtfPrev} { + string trimright [bytestring A\xF8\xA0\xA0] [bytestring \xF8] +} [bytestring A\xF8\xA0\xA0] +test utf-7.28 {Tcl_UtfPrev} { + string trimright [bytestring A\xF4\xA0\xA0] [bytestring \xF4] +} [bytestring A\xF4\xA0\xA0] +test utf-7.29 {Tcl_UtfPrev} { + string trimright [bytestring A\xD0\xA0\xA0] [bytestring \xD0] +} [bytestring A\xD0\xA0\xA0] + +test utf-7.30 {Tcl_UtfPrev} { + string trimright [bytestring A\xC0\x80\xA0] \u0000 +} [bytestring A\xC0\x80\xA0] + test utf-8.1 {Tcl_UniCharAtIndex: index = 0} { string index abcd 0 } {a} |
