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
|
||
|---|---|---|
| .. | ||
| initmain | ||
| outformat | ||
| qabstractitemmodeltester | ||
| qsignalspy | ||
| selftests | ||
| tostring | ||
| CMakeLists.txt | ||