added more time span formatting tests

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-20 15:11:18 +00:00
parent e566ccf1ba
commit c7564c6ac9

View File

@@ -686,11 +686,18 @@ void DateTimeTestCase::TestTimeSpanFormat()
const wxChar *result;
} testSpans[] =
{
{ 12, 34, 56, 789, _T("%H:%M:%S.%l"), _T("12:34:56.789") },
{ 1, 2, 3, 0, _T("%H:%M:%S"), _T("01:02:03") },
{ 1, 2, 3, 0, _T("%S"), _T("3723") },
{ -1, -2, -3, 0, _T("%S"), _T("-3723") },
{ -1, -2, -3, 0, _T("%H:%M:%S"), _T("-01:02:03") },
{ 12, 34, 56, 789, _T("%H:%M:%S.%l"), _T("12:34:56.789") },
{ 1, 2, 3, 0, _T("%H:%M:%S"), _T("01:02:03") },
{ 1, 2, 3, 0, _T("%S"), _T("3723") },
{ -1, -2, -3, 0, _T("%S"), _T("-3723") },
{ -1, -2, -3, 0, _T("%H:%M:%S"), _T("-01:02:03") },
{ 26, 0, 0, 0, _T("%H"), _T("26") },
{ 26, 0, 0, 0, _T("%D, %H"), _T("1, 02") },
{ -26, 0, 0, 0, _T("%H"), _T("-26") },
{ -26, 0, 0, 0, _T("%D, %H"), _T("-1, 02") },
{ 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") },
};
for ( size_t n = 0; n < WXSIZEOF(testSpans); n++ )