qt5base-lts/tests/auto/corelib
Edward Welbourne cff39f1818 tst_QTimeZone: improve readability of code and failure reports
When QCOMPARE(,) reports two 12-digit numbers, it's not always
immediately obvious what the difference is (much less what 1/3600000
of it is); nor is it obvious that (or why) a given 12-digit number is
in fact correct.  In contrast, our eyes can make sense of a
QDateTime's reported value quite well, enabling us to see what's
different; and it's possible to at least confirm the plausibility of
2-or-3 am on a spring or autumn day at a plausible transition (or even
to confirm it exactly by consulting suitable web-sites).  Also
document the actual transition happening in each case (since I *did*
consult a suitable web-site).  So prefer to QCOMPARE(,) two QDateTime
values instead of two 12-digit qint64s.

Where a that would be unsuitable, at least compare the difference to
zero, to make the error easier to understand (except when one of the
twelve-digit numbers consists entirely of 9s; that, for once, actually
is easy to see).

Write various multiples of 3600 as the relevant intelligible whole
number times 3600, rather than premultiplying, to make it obvious to
reders what's going on.

None of this changes what is actually tested.

Change-Id: I488e751283a55d4623c93612af13ad631144900d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-07-25 14:09:03 +00:00
..
animation Blacklist tst_QParallelAnimationGroup::deleteChildrenWithRunningGroup() 2017-06-19 18:33:47 +00:00
codecs QTextCodec: add QStringView overloads 2017-04-06 12:05:33 +00:00
global QRandomGenerator: use getentropy on Linux & OpenBSD 2017-06-30 21:19:10 +00:00
io Merge remote-tracking branch 'origin/5.9' into dev 2017-07-13 16:36:10 -07:00
itemmodels QSFPM: Avoid following a reset with unnecessary layoutChanged 2017-06-28 07:00:20 +00:00
json Improve symmetry of variant json conversions 2017-07-25 09:00:46 +00:00
kernel Merge remote-tracking branch 'origin/5.9' into dev 2017-07-13 16:36:10 -07:00
mimetypes Merge remote-tracking branch 'origin/5.9' into dev 2017-05-29 10:54:41 +02:00
plugin QUuid: add fromString(QStringView/QLatin1String) 2017-04-20 17:02:44 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.9' into dev 2017-07-04 16:05:53 +02:00
tools tst_QTimeZone: improve readability of code and failure reports 2017-07-25 14:09:03 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00