]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/dtifmtts.h
1 /********************************************************************
3 * Copyright (c) 2008-2013 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 * Stress test -- stress test formatting on 40 locales
52 * Test formatting against expected result
54 void expect(const char** data
, int32_t data_length
);
57 * Test formatting against expected result using user defined
60 void expectUserDII(const char** data
, int32_t data_length
);
63 * Stress test formatting
65 void stress(const char** data
, int32_t data_length
, const Locale
& loc
,
69 #endif /* #if !UCONFIG_NO_FORMATTING */