Commit Graph

15 Commits

Author SHA1 Message Date
Vadim Zeitlin
8605eb1abe added ParseDate() tests; use CPPUNIT_ASSERT_EQUAL to see the dates in cppunit output
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-21 16:21:18 +00:00
Vadim Zeitlin
34af0de434 compilation fixes for wxUSE_DATETIME==0 (another part of patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:20:28 +00:00
Roger Gammans
42b62acfc2 Add flags to test dates struct which allow us to skip ecpected failures.
Use new flags feature to allow us to test format dates outside the two digit
 year parse range.
 Add dates to test for sf.net bug #1357272 and a couple of related issues.
  (eg,6Feb{1856,1857,1937}) .


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-05 14:05:39 +00:00
Vadim Zeitlin
d26adb9df7 Fixed several bugs in wxDateTime timezone handling:
- ToTimezone() and MakeTimezone() now work as expected
 - added and documented FromTimezone() and MakeFromTimezone()
 - Set(double jdn) interprets jdn always in UTC
 - updated ParseRfc822Date() timezone handling
 - removed workarounds for old bugs from the test


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 13:06:36 +00:00
Vadim Zeitlin
fcae713511 another test for DST bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 00:23:05 +00:00
Vadim Zeitlin
a480d0ab83 added test for the DST bug (patch 1097811)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-31 01:36:28 +00:00
Włodzimierz Skiba
cad3d9c14c MinGW warning fix for hundreds of not initialized members.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 15:41:09 +00:00
Ryan Norton
8899b155a1 [ 1068188 ] Precompiled header for the test program [Modified a bit]
Regen bakefiles for unit tests


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 05:00:19 +00:00
Ryan Norton
aa3698d5d0 fix datetime tests for non-westeurope time zones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 09:31:13 +00:00
Ryan Norton
a9e9946154 Rename some tests to avoid conflicts with project builder GUI debugger
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 04:41:27 +00:00
Vadim Zeitlin
4c27e2faf3 deprecated SetToTheWeek() and GetWeek(); added and documented new and well-defined SetToWeekOfYear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:07:10 +00:00
Vadim Zeitlin
1c5d27e2ab fixed GetWeekOfYear() for first/last week in some cases (patch 908793)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 21:37:28 +00:00
Włodzimierz Skiba
592f132d04 Removed unused code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 08:00:23 +00:00
Vadim Zeitlin
e35594251f added Set(jdn) test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:54:34 +00:00
Vadim Zeitlin
ccd6aacd5d extracted some wxDateTime tests from console sample to the unit test suite
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 21:18:16 +00:00