diff options
| author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-01-27 15:30:48 +0100 |
|---|---|---|
| committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-02-12 12:51:36 +0000 |
| commit | 268afd8aef6882a66e642049814d2af0808325b0 (patch) | |
| tree | 3e0f29a58fa15f74e39e0b23f79f4b2e1a382324 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | dbb2374d20959472ca379a38c37774518eef5bfe (diff) | |
Extend QString equality tests with more long strings
Vectorized versions of ucstrncmp work on larger chunks of text
(typically 8 characters and an optional 4 more in some cases), so there
are now 4 extra sets of tests:
- strings of 1-65 characters, all different
- strings of 1-65 characters, all the same
- strings of 1-65 characters, all the same *except* the last character
- strings of 16 characters long, all the same except one, and that one
is different for every string (i.e. first string differs in first
char, second in second char, etc)
This should excercise both 1 or more iterations of the vectorized loop,
the detection logic inside the loop, and off-by-one cases.
The input is all ascii, so the ::compare() test will run them for both
QChar-QChar comparisson and for QChar-latin1 comparisson.
Change-Id: Ifaa7e019c63b581d4af5aef6dcfb3e7456c7d360
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
