fix wxTimeSpan::Format() for negative spans with 0 hour component (#10055)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-21 12:16:06 +00:00
parent 7e4d15d545
commit 9be232e7a9
3 changed files with 13 additions and 21 deletions

View File

@@ -706,6 +706,8 @@ void DateTimeTestCase::TestTimeSpanFormat()
{ 219, 0, 0, 0, _T("%H"), _T("219") },
{ 219, 0, 0, 0, _T("%D, %H"), _T("9, 03") },
{ 219, 0, 0, 0, _T("%E, %D, %H"), _T("1, 2, 03") },
{ 0, -1, 0, 0, _T("%H:%M:%S"), _T("-00:01:00") },
{ 0, 0, -1, 0, _T("%H:%M:%S"), _T("-00:00:01") },
};
for ( size_t n = 0; n < WXSIZEOF(testSpans); n++ )