1 // Copyright (C) 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);
39 void TestOutOfOrderPatterns();
43 void CheckFormatting(const ListFormatter* formatter, UnicodeString data[], int32_t data_size, const UnicodeString& expected_result);
45 const char* locale_string,
50 UnicodeString results[4]);
51 UBool RecordFourCases(
57 UnicodeString results[4]);
61 const UnicodeString prefix;
62 const UnicodeString one;
63 const UnicodeString two;
64 const UnicodeString three;
65 const UnicodeString four;