]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dadrcal.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 2007, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
10 * DataDrivenCalendarTest is a test class that uses data stored in resource
11 * bundles to perform testing. For more details on data structure, see
12 * source/test/testdata/calendar.txt
15 #ifndef _INTLTESTDATADRIVENCALENDAR
16 #define _INTLTESTDATADRIVENCALENDAR
18 #include "unicode/utypes.h"
20 #if !UCONFIG_NO_FORMATTING
24 #include "unicode/calendar.h"
30 class CalendarFieldsSet
;
32 class DataDrivenCalendarTest
: public IntlTest
{
33 void runIndexedTest(int32_t index
, UBool exec
, const char* &name
,
36 DataDrivenCalendarTest();
37 virtual ~DataDrivenCalendarTest();
40 void DataDrivenTest(char *par
);
41 void processTest(TestData
*testData
);
43 void testConvert(TestData
*testData
, const DataMap
*settings
, UBool fwd
);
44 void testOps(TestData
*testData
, const DataMap
*settings
);
45 void testConvert(int32_t n
, const CalendarFieldsSet
&fromSet
,
46 Calendar
*fromCal
, const CalendarFieldsSet
&toSet
, Calendar
*toCal
,
49 TestDataModule
*driver
;
52 #endif /* #if !UCONFIG_NO_COLLATION */