]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/listformattertest.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 2012-2013, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
10 * file name: listformattertest.cpp
12 * tab size: 8 (not used)
15 * created on: 2012aug27
16 * created by: Umesh P. Nair
19 #ifndef __LISTFORMATTERTEST_H__
20 #define __LISTFORMATTERTEST_H__
22 #include "unicode/listformatter.h"
25 class ListFormatterTest
: public IntlTest
{
28 virtual ~ListFormatterTest() {}
30 void runIndexedTest(int32_t index
, UBool exec
, const char *&name
, char *par
=0);
38 void TestChineseTradHK();
42 void TestOutOfOrderPatterns();
46 void CheckFormatting(const ListFormatter
* formatter
, UnicodeString data
[], int32_t data_size
, const UnicodeString
& expected_result
);
48 const char* locale_string
,
53 UnicodeString results
[4]);
54 UBool
RecordFourCases(
60 UnicodeString results
[4]);
64 const UnicodeString prefix
;
65 const UnicodeString one
;
66 const UnicodeString two
;
67 const UnicodeString three
;
68 const UnicodeString four
;