qt6-bb10/tests/auto/corelib/text
Marc Mutz 47df569343 tst_QAnyStringView: test which chars magically convert
QAnyStringView is designed to replace overload sets containing QString
and QChar, among others, so it needs to accept types that merely
implicitly convert to QString and QChar. It achieves this by
maintaining a hidden container to hold the converted QString or QChar
for the duration of the full-expression, much like the compiler would
do if the function took QString/QChar.

This patch adds a check for the single-char ctors to determine whether
they convert or not, by comparing QASV::data() to the address of the
QASV's argument. While it would be interesting to have the same test
for QString, that is outside the scope of this patch.

Task-number: QTBUG-126054
Pick-to: 6.5 6.2
Change-Id: I30ac2d1199da5a03fe6fee4c9d5ea2a209a003d6
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
(cherry picked from commit f31c37a1312fc4e21a58906e2b883099629fb9e1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 18b56bbae2cb1e775b5155f8fc019081780a9867)
2025-02-11 00:49:25 +00:00
..
qanystringview tst_QAnyStringView: test which chars magically convert 2025-02-11 00:49:25 +00:00
qbytearray Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
qbytearray_large Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qbytearrayapisymmetry Blacklist tests requiring parsing text > 255 chars on VxWorks 2024-06-26 22:52:30 +00:00
qbytearraylist Change license for tests files 2024-02-04 09:56:42 +01:00
qbytearraymatcher Change license for tests files 2024-02-04 09:56:42 +01:00
qbytearrayview tst_QByteArrayView: check conversion from various QSpans 2024-12-15 13:41:43 +00:00
qbytedatabuffer Change license for tests files 2024-02-04 09:56:42 +01:00
qchar Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qcollator Change license for tests files 2024-02-04 09:56:42 +01:00
qlatin1stringmatcher QStaticLatin1StringMatcher: add indexIn(QStringView) 2024-05-08 22:05:35 +02:00
qlatin1stringview Confirm QLatin1StringView can be constructed over arrays of unknown bounds 2024-12-11 06:29:18 +00:00
qlocale Include more pruned likely-equivalent entries in QLocale::uiLanguages 2025-01-28 15:49:49 +01:00
qregularexpression QRegularExpression: coalesce consecutive * tokens in wildcards 2024-08-08 01:09:59 +00:00
qstring tst_QString: extend arg() tests with enums w/o explicit underlying_type 2024-12-13 08:00:16 +00:00
qstring_no_cast_from_bytearray Change license for tests files 2024-02-04 09:56:42 +01:00
qstringapisymmetry tst_QStringApiSymmetry: test QByteArray(weak)/QByteArrayView overloading 2024-12-13 08:00:16 +00:00
qstringbuilder tst_QStringBuilder: add more checks 2024-06-12 12:23:43 +00:00
qstringconverter tst_QStringConverter: compare pointer distances, not pointers 2024-06-07 06:59:22 +00:00
qstringiterator Change license for tests files 2024-02-04 09:56:42 +01:00
qstringlist Change license for tests files 2024-02-04 09:56:42 +01:00
qstringmatcher Change license for tests files 2024-02-04 09:56:42 +01:00
qstringtokenizer Change license for tests files 2024-02-04 09:56:42 +01:00
qstringview Q{Any,Utf8}StringView: fix construction from arrays of unknown size 2024-12-16 20:45:24 +00:00
qtextboundaryfinder Add REUSE.toml files 2024-11-07 08:38:49 +01:00
qunicodetools Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tst_QStringApiSymmetry: disable for WASM 2024-08-25 10:21:14 +00:00