]>
Commit | Line | Data |
---|---|---|
1 | // © 2016 and later: Unicode, Inc. and others. | |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
3 | /******************************************************************** | |
4 | * COPYRIGHT: | |
5 | * Copyright (c) 2012-2014, International Business Machines Corporation and | |
6 | * others. All Rights Reserved. | |
7 | ********************************************************************/ | |
8 | // | |
9 | // file: alphaindextst.h | |
10 | // Alphabetic Index Tests. | |
11 | // | |
12 | ||
13 | #ifndef ALPHAINDEXTST_H | |
14 | #define ALPHAINDEXTST_H | |
15 | ||
16 | #include "unicode/uscript.h" | |
17 | #include "intltest.h" | |
18 | ||
19 | class AlphabeticIndexTest: public IntlTest { | |
20 | public: | |
21 | AlphabeticIndexTest(); | |
22 | virtual ~AlphabeticIndexTest(); | |
23 | ||
24 | virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL ); | |
25 | ||
26 | virtual void APITest(); | |
27 | virtual void ManyLocalesTest(); | |
28 | virtual void HackPinyinTest(); | |
29 | virtual void TestBug9009(); | |
30 | void TestIndexCharactersList(); | |
31 | /** | |
32 | * Test AlphabeticIndex vs. root with script reordering. | |
33 | */ | |
34 | void TestHaniFirst(); | |
35 | /** | |
36 | * Test AlphabeticIndex vs. Pinyin with script reordering. | |
37 | */ | |
38 | void TestPinyinFirst(); | |
39 | /** | |
40 | * Test labels with multiple primary weights. | |
41 | */ | |
42 | void TestSchSt(); | |
43 | /** | |
44 | * With no real labels, there should be only the underflow label. | |
45 | */ | |
46 | void TestNoLabels(); | |
47 | /** | |
48 | * Test with the Bopomofo-phonetic tailoring. | |
49 | */ | |
50 | void TestChineseZhuyin(); | |
51 | void TestJapaneseKanji(); | |
52 | void TestChineseUnihan(); | |
53 | ||
54 | void testHasBuckets(); | |
55 | void checkHasBuckets(const Locale &locale, UScriptCode script); | |
56 | }; | |
57 | ||
58 | #endif |