2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2001-03-21 20:09:56 +00:00
|
|
|
* Copyright (c) 1997-2001, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#ifndef __CalendarLimitTest__
|
|
|
|
#define __CalendarLimitTest__
|
|
|
|
|
2002-09-21 00:43:14 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "caltztst.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This test verifies the behavior of Calendar around the very earliest limits
|
|
|
|
* which it can handle. It also verifies the behavior for large values of millis.
|
|
|
|
*
|
|
|
|
* Bug ID 4033662.
|
|
|
|
*/
|
|
|
|
class CalendarLimitTest: public CalendarTimeZoneTest {
|
|
|
|
// IntlTest override
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par );
|
1999-08-16 21:50:52 +00:00
|
|
|
public: // package
|
|
|
|
//test routine used by TestCalendarLimit
|
|
|
|
virtual void test(UDate millis, Calendar *cal, DateFormat *fmt);
|
|
|
|
|
2001-06-11 17:32:50 +00:00
|
|
|
// bug 986c: deprecate nextDouble/previousDouble
|
|
|
|
//static double nextDouble(double a);
|
|
|
|
//static double previousDouble(double a);
|
2000-05-18 22:08:39 +00:00
|
|
|
static UBool withinErr(double a, double b, double err);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
// test behaviour and error reporting at boundaries of defined range
|
|
|
|
virtual void TestCalendarLimit(void);
|
|
|
|
};
|
2002-09-21 00:43:14 +00:00
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
#endif // __CalendarLimitTest__
|