git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54722
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
assertEquals(size_t(expected), actual, sourceLine, message);
}
assertEquals(size_t(expected), actual, sourceLine, message);
}
-// and another, slightly different, for checking that result of potentially
-// different time_t type is the same as given time_t value
-inline void
-assertEquals(time_t expected,
- long actual,
- CppUnit::SourceLine sourceLine,
- const std::string& message)
-{
- assertEquals(expected, time_t(actual), sourceLine, message);
-}
-
CPPUNIT_NS_END
// Use this macro to compare a wxArrayString with the pipe-separated elements
CPPUNIT_NS_END
// Use this macro to compare a wxArrayString with the pipe-separated elements
// GetValue() returns internal UTC-based representation, we need to
// convert it to local TZ before comparing
// GetValue() returns internal UTC-based representation, we need to
// convert it to local TZ before comparing
- long ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset();
+ time_t ticks = (dt.GetValue() / 1000).ToLong() + TZ_LOCAL.GetOffset();
if ( dt.IsDST() )
ticks += 3600;
CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks + tzOffset );
if ( dt.IsDST() )
ticks += 3600;
CPPUNIT_ASSERT_EQUAL( d.gmticks, ticks + tzOffset );