1 /******************************************************************** 2 * COPYRIGHT: 3 * Copyright (c) 1997-2001, International Business Machines Corporation and 4 * others. All Rights Reserved. 5 ********************************************************************/ 6 7 #ifndef __CalendarLimitTest__ 8 #define __CalendarLimitTest__ 9 10 #include "unicode/utypes.h" 11 12 #if !UCONFIG_NO_FORMATTING 13 14 #include "caltztst.h" 15 16 /** 17 * This test verifies the behavior of Calendar around the very earliest limits 18 * which it can handle. It also verifies the behavior for large values of millis. 19 * 20 * Bug ID 4033662. 21 */ 22 class CalendarLimitTest: public CalendarTimeZoneTest { 23 // IntlTest override 24 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ); 25 public: // package 26 //test routine used by TestCalendarLimit 27 virtual void test(UDate millis, Calendar *cal, DateFormat *fmt); 28 29 // bug 986c: deprecate nextDouble/previousDouble 30 //static double nextDouble(double a); 31 //static double previousDouble(double a); 32 static UBool withinErr(double a, double b, double err); 33 34 public: 35 // test behaviour and error reporting at boundaries of defined range 36 virtual void TestCalendarLimit(void); 37 }; 38 39 #endif /* #if !UCONFIG_NO_FORMATTING */ 40 41 #endif // __CalendarLimitTest__ 42