summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-06-04 17:02:13 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-06-05 12:13:05 +0200
commit5f8c6f1760c49c3061ab279b102f7536301ee8e9 (patch)
tree8ece4407be36afa11448af170617edeaa21e4c22 /src/corelib/text
parent262ab9944ad2d6a79b2b85ffa0f7fea2026a2849 (diff)
Rework testing of qstr*cmp() functions
Previously only qstr*icmp() were tested and the test data was sent via QString and {en,de}coding. Use a local data-type to package pointers to actual string literals for passing to these functions that take them. Fold the various tests involving null pointers and empty strings into the general testing, removing from "singularity" tests, and combine the remainders of those tests into a single test of singular cases for QByteArray::ompare. Move all these tests to alongside the existing tests for QByteArray::compare. Use nullptr rather than 0 as the null string. Change-Id: Ie6d01e839c330c2f960af4bcc95e5633539337d6 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text')
0 files changed, 0 insertions, 0 deletions