X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9807f995059c9049505a67c1ba3535e6c43362d1..9fd707a51f975871d5f926e0eedc4cecb0eaccfa:/tests/datetime/datetimetest.cpp?ds=sidebyside diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 8f9971c4c4..e9e430998e 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -686,9 +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") }, + { 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++ )