Provide more information if wxDateTime DST test fails
Show the original date and the date after modification.
This commit is contained in:
parent
369e6f6554
commit
efb8d82c8a
1 changed files with 2 additions and 0 deletions
|
|
@ -1588,6 +1588,7 @@ static void DoTestSetFunctionsOnDST(const wxDateTime &orig)
|
|||
{ \
|
||||
wxDateTime copy = orig; \
|
||||
copy.func; \
|
||||
INFO("Original date=" << orig << ", modified=" << copy); \
|
||||
CHECK(orig.IsDST() == copy.IsDST()); \
|
||||
CHECK(orig.GetHour() == copy.GetHour()); \
|
||||
}
|
||||
|
|
@ -1612,6 +1613,7 @@ static void DoTestSetFunctionsOnDST(const wxDateTime &orig)
|
|||
// Special case for set hour since it's ambiguous at DST we don't care if IsDST matches
|
||||
wxDateTime copy = orig;
|
||||
copy.SetHour(orig.GetHour());
|
||||
INFO("Original date=" << orig << ", modified=" << copy);
|
||||
CHECK(orig.GetHour() == copy.GetHour());
|
||||
}
|
||||
#undef DST_TEST_FUN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue