@@ -550,25 +550,31 @@ BOOST_AUTO_TEST_CASE(CVTStringToFormatDateTime_TIME)
550550 testCVTStringToFormatDateTimeExpectTime (" 5" , " FF1" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 5000 ), cb);
551551 testCVTStringToFormatDateTimeExpectTime (" 9" , " FF1" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 9000 ), cb);
552552
553- testCVTStringToFormatDateTimeExpectTime (" 1" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
553+ testCVTStringToFormatDateTimeExpectTime (" 01" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
554+ testCVTStringToFormatDateTimeExpectTime (" 1" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
554555 testCVTStringToFormatDateTimeExpectTime (" 10" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
555556 testCVTStringToFormatDateTimeExpectTime (" 50" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 5000 ), cb);
556557 testCVTStringToFormatDateTimeExpectTime (" 99" , " FF2" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 9900 ), cb);
557558
558- testCVTStringToFormatDateTimeExpectTime (" 1" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 ), cb);
559- testCVTStringToFormatDateTimeExpectTime (" 10" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
559+ testCVTStringToFormatDateTimeExpectTime (" 01" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
560+ testCVTStringToFormatDateTimeExpectTime (" 001" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 ), cb);
561+ testCVTStringToFormatDateTimeExpectTime (" 1" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
562+ testCVTStringToFormatDateTimeExpectTime (" 10" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
560563 testCVTStringToFormatDateTimeExpectTime (" 100" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
561564 testCVTStringToFormatDateTimeExpectTime (" 500" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 5000 ), cb);
562565 testCVTStringToFormatDateTimeExpectTime (" 999" , " FF3" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 9990 ), cb);
563566
564- testCVTStringToFormatDateTimeExpectTime (" 1" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ), cb);
565- testCVTStringToFormatDateTimeExpectTime (" 10" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 ), cb);
566- testCVTStringToFormatDateTimeExpectTime (" 100" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
567+ testCVTStringToFormatDateTimeExpectTime (" 01" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 100 ), cb);
568+ testCVTStringToFormatDateTimeExpectTime (" 001" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 10 ), cb);
569+ testCVTStringToFormatDateTimeExpectTime (" 0001" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ), cb);
570+ testCVTStringToFormatDateTimeExpectTime (" 1" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
571+ testCVTStringToFormatDateTimeExpectTime (" 10" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
572+ testCVTStringToFormatDateTimeExpectTime (" 100" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
567573 testCVTStringToFormatDateTimeExpectTime (" 1000" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 1000 ), cb);
568574 testCVTStringToFormatDateTimeExpectTime (" 5000" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 5000 ), cb);
569575 testCVTStringToFormatDateTimeExpectTime (" 9999" , " FF4" , createTimeStampTZ (0 , 0 , 0 , 0 , 0 , 0 , 0 , 9999 ), cb);
570576
571- testCVTStringToFormatDateTimeExpectTime (" 1 P.M. - 25 - 45 - 200 " , " HH P.M. MI.SS.FF4" , createTimeStampTZ (0 , 0 , 0 , 13 , 25 , 45 , 0 , 200 ), cb);
577+ testCVTStringToFormatDateTimeExpectTime (" 1 P.M. - 25 - 45 - 2 " , " HH P.M. MI.SS.FF4" , createTimeStampTZ (0 , 0 , 0 , 13 , 25 , 45 , 0 , 2000 ), cb);
572578 testCVTStringToFormatDateTimeExpectTime (" 15:0:15:2" , " HH24.MI.SS.FF1" , createTimeStampTZ (0 , 0 , 0 , 15 , 0 , 15 , 0 , 2000 ), cb);
573579}
574580
@@ -583,7 +589,7 @@ BOOST_AUTO_TEST_CASE(CVTStringToFormatDateTime_TZ)
583589
584590BOOST_AUTO_TEST_CASE (CVTStringToFormatDateTime_SOLID_PATTERNS)
585591{
586- testCVTStringToFormatDateTimeExpectTime (" 1 P.M. - 25 - 45 - 200 " , " HHA.M.MISSFF4" , createTimeStampTZ (0 , 0 , 0 , 13 , 25 , 45 , 0 , 200 ), cb);
592+ testCVTStringToFormatDateTimeExpectTime (" 1 P.M. - 25 - 45 - 2 " , " HHA.M.MISSFF4" , createTimeStampTZ (0 , 0 , 0 , 13 , 25 , 45 , 0 , 2000 ), cb);
587593 testCVTStringToFormatDateTimeExpectDate (" 1981-8/13" , " YEARMMDD" , createTimeStampTZ (1981 , 8 , 13 , 0 , 0 , 0 , 0 ), cb);
588594}
589595
0 commit comments