qt5base-lts/tests/auto/corelib/text
Edward Welbourne d055abd195 Assert that special handling of '0' padding does what it should
When formatting numbers, if the fill character used to left-pad to
field widths is '0', the code delegates that padding to the
QLocaleData's ZeroPadded formatting option. Since we want the zeros
before any minus sign, and don't want to subsequently add more zeros
before it, check that this has worked as expected when calling
replaceArgEscapes(), to confirm that it doesn't need to worry about
that.

Add some tests that verify the expected behavior.

In the process, tidy up the code doing this. Rename a local variable
to match our coding style, split a long line.

Pick-to: 6.2
Change-Id: I7cc430c5bceb006cf4e226bca33da16bd2bb1937
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-08-10 19:43:03 +02:00
..
qbytearray QString/QByteArray: Fix setNum docs and add tests 2021-08-06 16:49:08 +02:00
qbytearrayapisymmetry QByteArray: extend unit tests 2021-07-29 15:00:35 +02:00
qbytearraylist Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearraymatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearrayview QByteArrayView: add compare 2021-05-20 17:02:38 +02:00
qbytedatabuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qchar Hangul composition: use < base + count checks, not <= checks 2021-06-11 13:57:19 +02:00
qcollator Mark variables that might be unused under some configurations 2021-04-11 19:53:43 +02:00
qlatin1string QLatin1String: Add a constructor taking QByteArrayView 2021-06-12 03:08:59 +02:00
qlocale tst_qlocale: Add tests for parsing Chakma date and time strings 2021-07-19 22:05:54 +02:00
qregularexpression QRegularExpression: add move constructor 2021-01-26 17:20:01 +01:00
qstring Assert that special handling of '0' padding does what it should 2021-08-10 19:43:03 +02:00
qstring_no_cast_from_bytearray testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qstringapisymmetry tst_qstringapisymmetry: add checks for common overload sets 2021-06-25 16:20:41 +02:00
qstringbuilder Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringconverter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringiterator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringlist Ensure test using setlocale() doesn't leave it permanently changed 2021-06-12 00:03:53 +02:00
qstringmatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringtokenizer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextboundaryfinder Unicode: fix the extended grapheme cluster algorithm 2021-04-16 20:31:39 +02:00
shared QByteArray::number(double): Extend the test 2021-08-04 23:45:47 +02:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00