]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/callimts.h
1 /********************************************************************
3 * Copyright (c) 1997-2001, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #ifndef __CalendarLimitTest__
8 #define __CalendarLimitTest__
10 #include "unicode/utypes.h"
12 #if !UCONFIG_NO_FORMATTING
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.
22 class CalendarLimitTest
: public CalendarTimeZoneTest
{
24 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
);
26 //test routine used by TestCalendarLimit
27 virtual void test(UDate millis
, Calendar
*cal
, DateFormat
*fmt
);
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
);
35 // test behaviour and error reporting at boundaries of defined range
36 virtual void TestCalendarLimit(void);
39 #endif /* #if !UCONFIG_NO_FORMATTING */
41 #endif // __CalendarLimitTest__