summaryrefslogtreecommitdiffstats
path: root/tests/utf.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2020-05-061-8/+6
|\
| * Merge 8.5.jan.nijtmans2020-05-061-11/+9
| |\ | | | | | | Make testcases utf-7.20.[01] content the same as in core-8-5-branch, core-8-branch and trunk (0xF4 -> 0xF2)
| | * 3 testcases don't need pairsTo4bytes, fullutf is enough, since the ↵jan.nijtmans2020-05-061-5/+3
| | | | | | | | | | | | dubble-surrogate-backslash syntac has no relation to the internal byte format.
* | | Fix Tcl_UtfPrev() such that it can never go back more than TCL_UTF_MAX ↵jan.nijtmans2020-05-051-13/+13
| | | | | | | | | | | | bytes. Already done correctly on core-8-6-branch, but this was never forwarded to core-8-branch.
* | | Merge 8.6jan.nijtmans2020-05-051-54/+51
|\ \ \ | |/ /
| * | Merge 8.5jan.nijtmans2020-05-051-26/+35
| |\ \ | | |/
| | * Properly protect "Invalid" function against lead bytes 0x80-0xBF. This fixes ↵jan.nijtmans2020-05-051-25/+34
| | | | | | | | | | | | | | | "knownBug" testcase utf-6.93.1. Rename tip389 selector to utf16, since that's what it actually is, in contrast to ucs2 and ucs4.
| | * Test-case cleanup. Increase timeout a little bit in main.test, making Travis ↵jan.nijtmans2020-05-041-41/+50
| | | | | | | | | | | | build errors because of this less likely.
| * | New internal function TclGetUCS4() only available when TCL_UTF_MAX=4. This ↵jan.nijtmans2020-05-041-7/+7
| | | | | | | | | | | | fixes all "knownBug" testcases related to tip389.
| * | (partial) fix for [9d0cb35bb2]: Various issues with core-8-6-branch, ↵jan.nijtmans2020-05-041-8/+8
| | | | | | | | | | | | | | | TCL_UTF_MAX=4. (even though TCL_UTF_MAX=4 is unsupported, it would be nice to make it work) Marked various test-cases as "knownBug", those work correctly in core-8-branch (8.7). The fix there could be backported. Low prio.
| * | Re-join utf-6.93.0 and utf-6.93.1 (please disregard comment in previous ↵jan.nijtmans2020-05-031-1/+4
| | | | | | | | | | | | | | | commit, it was not correct). Perfectionalize TclUtfToUCS4()/TclUCS4Complete() and new (internal) function TclUCS4ToUtf(). They can help preventing bugs regarding splitting/joining surrogates. Used them in a few more places.
* | | Merge 8.6jan.nijtmans2020-05-021-27/+27
|\ \ \ | |/ /
| * | Join test-cases utf-6.93.0 and utf-6.93.1, which MUST give the same answer ↵jan.nijtmans2020-05-021-31/+28
| | | | | | | | | | | | | | | | | | always for whatever testConstraints. Fix one invalid use of TclUCS4Complete(), and let TclUtfToUCS4() handle (invalid) 4-byte sequences. Test-case cleanup (removal of unnecessary quoting)
* | | Improve/simplify "testutfnext" and "testutfprev" commands. Now don't need to ↵jan.nijtmans2020-05-011-405/+405
|\ \ \ | | | | | | | | | | | | do special things with byte arrays. You can use "testbytestring" for that. This makes it more clear which test-cases use invalid byte-sequences. Now "testutfnext" also checks whether Tcl_UtfNext() reads src[-1] and src[end], and will warn you when it does.
| * | | Better structurize the UTF-8 (mainly around Tcl_UtfNext()/Tcl_UtfPrev(), but ↵jan.nijtmans2020-04-291-448/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not only those) test-cases: Selector "ucs2" is meant for Tcl 8.5: No knowledge at all about 4-byte sequences. Selector "ucs4" is meant for Tcl 8.5 or 8.7 with TCL_UTF_MAX=4 or Tcl 8.6 with TCL_UTF_MAX=6 Selector "tip389" is meant for Tcl 8.6 with TCL_UTF_MAX=4 and Tcl 8.7 with TCL_UTF_MAX=3 (of course, this is too simple: there will be testcases needing more than those 3
* | | | merge 8.6dgp2020-04-301-0/+9
|\ \ \ \ | | |/ / | |/| |
| * | | merge 8.5dgp2020-04-301-2/+2
| |\ \ \ | | | |/ | | |/|
| | * | D'oh!dgp2020-04-301-1/+1
| | | |
| * | | merge 8.5dgp2020-04-301-0/+9
| |\ \ \ | | |/ /
| | * | Test for [4c591fa487].dgp2020-04-301-0/+9
| | | |
* | | | merge 8.6dgp2020-04-301-3/+5
|\ \ \ \ | |/ / /
| * | | merge 8.5dgp2020-04-301-3/+5
| |\ \ \ | | |/ /
| | * | Revise constraints to where expectations are met.dgp2020-04-301-3/+5
| | | |
* | | | Merge 8.6jan.nijtmans2020-04-301-3/+6
|\ \ \ \ | |/ / /
| * | | merge 8.5dgp2020-04-301-1/+4
| |\ \ \ | | |/ /
| | * | Split a test so other builds are covered.dgp2020-04-301-1/+4
| | | |
| * | | Merge 8.5jan.nijtmans2020-04-301-2/+2
| |\ \ \ | | |/ /
| | * | New encoding-15.16 test-case. Fix title of utf 2 test-cases.jan.nijtmans2020-04-301-2/+2
| | | |
* | | | Merge 8.6jan.nijtmans2020-04-301-53/+53
|\ \ \ \ | |/ / /
| * | | Merge 8.5jan.nijtmans2020-04-301-18/+6
| |\ \ \ | | |/ /
| | * | Renumber test-casesjan.nijtmans2020-04-301-18/+6
| | | |
| * | | Merge 8.5jan.nijtmans2020-04-301-45/+57
| |\ \ \ | | |/ /
| | * | Remove unnecessary quoting in test-cases. Add some more tests for ↵jan.nijtmans2020-04-301-45/+57
| | | | | | | | | | | | | | | | toupper/tolower/totitle
* | | | Merge 8.6. Still a knownBug here.dgp2020-04-291-2/+3
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | Merge 8.5. Mark test knownBug while it fails on builds of this branch.dgp2020-04-291-2/+3
| |\ \ | | |/
| | * New test for Tcl_UniCharNcmp.dgp2020-04-291-2/+3
| | |
* | | merge 8.6dgp2020-04-281-0/+54
|\ \ \ | |/ /
| * | merge 8.5dgp2020-04-281-0/+54
| |\ \ | | |/
| | * Correct the tests for variants with no UCS-4 support.dgp2020-04-281-6/+6
| | |
| | * Test the other notation too (as was already done in 8.7+)dgp2020-04-281-0/+54
| | |
* | | merge 8.6dgp2020-04-281-6/+41
|\ \ \ | |/ /
| * | merge 8.5dgp2020-04-281-6/+41
| |\ \ | | |/
| | * Split tests utf-8.5.dgp2020-04-281-1/+7
| | | | | | | | | | | | | | | | | | This is a strange one. All 3 variants do the same thing. However, builds of Tcl 8.6 with TUM=4 and TUM=6 both do something different. Those builds also reject all three constraints. They are something else and are uncovered so far.
| | * Expand coverage of indexing across all variants.dgp2020-04-281-5/+34
| | |
* | | Extend "testutfnext" test-command such that it can detect when it reads more ↵jan.nijtmans2020-04-281-7/+7
| | | | | | | | | | | | | | | bytes than the end of the string. If you want to null-terminate string explitely, use \x00
* | | Bring forward test-cases utf-6.94 and utf-6.95 from Tcl 8.6 (higher ones ↵jan.nijtmans2020-04-281-0/+6
| | | | | | | | | | | | have no value IMHO, but those 2 have!)
* | | merge 8.6dgp2020-04-281-2/+2
|\ \ \ | |/ /
| * | merge 8.5dgp2020-04-281-2/+2
| |\ \ | | |/
| | * repair numbering botch.dgp2020-04-281-2/+2
| | |
* | | merge 8.6dgp2020-04-281-9/+21
|\ \ \ | |/ /