]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dtifmtts.h
1 /********************************************************************
3 * Copyright (c) 2008-2015 International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #ifndef _INTLTESTDATEINTERVALFORMAT
8 #define _INTLTESTDATEINTERVALFORMAT
10 #include "unicode/utypes.h"
11 #include "unicode/locid.h"
13 #if !UCONFIG_NO_FORMATTING
18 * Test basic functionality of various API functions
20 class DateIntervalFormatTest
: public IntlTest
{
21 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
25 * Performs tests on many API functions, see detailed comments in source code
35 * Test formatting using user defined DateIntervalInfo
37 void testFormatUserDII();
40 * Test for no unwanted side effects when setting
43 void testSetIntervalPatternNoSideEffect();
46 * Tests different year formats.
48 void testYearFormats();
51 * Stress test -- stress test formatting on 40 locales
55 void testTicket11583_2();
59 * Test formatting against expected result
61 void expect(const char** data
, int32_t data_length
);
64 * Test formatting against expected result using user defined
67 void expectUserDII(const char** data
, int32_t data_length
);
70 * Stress test formatting
72 void stress(const char** data
, int32_t data_length
, const Locale
& loc
,
76 #endif /* #if !UCONFIG_NO_FORMATTING */