]>
git.saurik.com Git - wxWidgets.git/blob - tests/testdate.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/testdate.h
3 // Purpose: Unit test helpers for dealing with wxDateTime.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_TESTS_TESTDATE_H_
11 #define _WX_TESTS_TESTDATE_H_
13 #include "wx/datetime.h"
15 // need this to be able to use CPPUNIT_ASSERT_EQUAL with wxDateTime objects
16 inline std::ostream
& operator<<(std::ostream
& ostr
, const wxDateTime
& dt
)
18 ostr
<< dt
.FormatISOCombined(' ');
23 WX_CPPUNIT_ALLOW_EQUALS_TO_INT(wxDateTime::wxDateTime_t
)
25 #endif // _WX_TESTS_TESTDATE_H_