]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dtifmtts.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 2008-2016 International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
9 #ifndef _INTLTESTDATEINTERVALFORMAT
10 #define _INTLTESTDATEINTERVALFORMAT
12 #include "unicode/utypes.h"
13 #include "unicode/locid.h"
15 #if !UCONFIG_NO_FORMATTING
20 * Test basic functionality of various API functions
22 class DateIntervalFormatTest
: public IntlTest
{
23 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
27 * Performs tests on many API functions, see detailed comments in source code
37 * Test formatting using user defined DateIntervalInfo
39 void testFormatUserDII();
42 * Test for no unwanted side effects when setting
45 void testSetIntervalPatternNoSideEffect();
48 * Tests different year formats.
50 void testYearFormats();
53 * Stress test -- stress test formatting on 40 locales
57 void testTicket11583_2();
59 void testTicket11985();
61 void testTicket11669();
62 void threadFunc11669(int32_t threadNum
);
64 void testTicket12065();
68 * Test formatting against expected result
70 void expect(const char** data
, int32_t data_length
);
73 * Test formatting against expected result using user defined
76 void expectUserDII(const char** data
, int32_t data_length
);
79 * Stress test formatting
81 void stress(const char** data
, int32_t data_length
, const Locale
& loc
,
85 #endif /* #if !UCONFIG_NO_FORMATTING */