]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dadrcal.h
1 /********************************************************************
3 * Copyright (c) 2007, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
8 * DataDrivenCalendarTest is a test class that uses data stored in resource
9 * bundles to perform testing. For more details on data structure, see
10 * source/test/testdata/calendar.txt
13 #ifndef _INTLTESTDATADRIVENCALENDAR
14 #define _INTLTESTDATADRIVENCALENDAR
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_FORMATTING
22 #include "unicode/calendar.h"
28 class CalendarFieldsSet
;
30 class DataDrivenCalendarTest
: public IntlTest
{
31 void runIndexedTest(int32_t index
, UBool exec
, const char* &name
,
34 DataDrivenCalendarTest();
35 virtual ~DataDrivenCalendarTest();
38 void DataDrivenTest(char *par
);
39 void processTest(TestData
*testData
);
41 void testConvert(TestData
*testData
, const DataMap
*settings
, UBool fwd
);
42 void testOps(TestData
*testData
, const DataMap
*settings
);
43 void testConvert(int32_t n
, const CalendarFieldsSet
&fromSet
,
44 Calendar
*fromCal
, const CalendarFieldsSet
&toSet
, Calendar
*toCal
,
47 TestDataModule
*driver
;
50 #endif /* #if !UCONFIG_NO_COLLATION */