diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-11-29 14:24:52 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-12-06 09:46:55 +0000 |
| commit | 3a57885c3766d4ae203650d60881988c374e4148 (patch) | |
| tree | 21e6a7aa5e58eabfa9cecd52a2e99b3c8a773cf9 /src/gui/doc/snippets/textdocument-css/main.cpp | |
| parent | a14d3a49f0abed1d430edb96a272ca05a73f7dc5 (diff) | |
tst_tostring: support computed expected values
We need an owning container to keep the data alive when the _data
function computes the expected value instead of passing it as a
literal string, so replace the QByteArrayView we used so far with a
const QByteArray.
If a test failed, print the tail ends of the failing strings. This
is useful when toString() implementations printing the operands of
the failed toString()-under-test result comparison decide to
truncate the output. It works around the fact that we both test
toString() and use toString() to report any failure.
As a drive-by, add a missing blank line between function definitions.
Amends a2551c45d496c23045eb8451e080e75b2f8b42c1.
Pick-to: 6.6
Change-Id: I0b217aeb1a6d475df8e8b9fb821046f1cceb1a3e
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css/main.cpp')
0 files changed, 0 insertions, 0 deletions
