]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/tufmtts.h
1 /********************************************************************
3 * Copyright (c) 2008-2013, International Business Machines Corporation
4 * and others. All Rights Reserved.
5 ********************************************************************/
7 #ifndef __INTLTESTTIMEUNITTEST__
8 #define __INTLTESTTIMEUNITTEST__
11 #if !UCONFIG_NO_FORMATTING
13 #include "unicode/utypes.h"
14 #include "unicode/locid.h"
18 * Test basic functionality of various API functions
20 class TimeUnitTest
: public IntlTest
{
21 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
25 * Performs basic tests
35 * Performs tests for Greek
36 * This tests that requests for short unit names correctly fall back
37 * to long unit names for a locale where the locale data does not
38 * provide short unit names. As of CLDR 1.9, Greek is one such language.
40 void testGreekWithFallback();
43 * Performs tests for Greek
44 * This tests that if the plural count listed in time unit format does not
45 * match those in the plural rules for the locale, those plural count in
46 * time unit format will be ingored and subsequently, fall back will kick in
47 * which is tested above.
48 * Without data sanitization, setNumberFormat() would crash.
49 * As of CLDR shiped in ICU4.8, Greek is one such language.
51 void testGreekWithSanitization();
54 * Performs unit test for ticket 10219 making sure that plurals work
55 * correctly with rounding.
57 void test10219Plurals();
61 #endif /* #if !UCONFIG_NO_FORMATTING */