You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
// © 2016 and later: Unicode, Inc. and others.
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
|
/********************************************************************
|
|
* COPYRIGHT:
|
|
* Copyright (c) 2012-2014, International Business Machines Corporation and
|
|
* others. All Rights Reserved.
|
|
********************************************************************/
|
|
//
|
|
// file: alphaindextst.h
|
|
// Alphabetic Index Tests.
|
|
//
|
|
|
|
#ifndef ALPHAINDEXTST_H
|
|
#define ALPHAINDEXTST_H
|
|
|
|
#include "unicode/uscript.h"
|
|
#include "intltest.h"
|
|
|
|
class AlphabeticIndexTest: public IntlTest {
|
|
public:
|
|
AlphabeticIndexTest();
|
|
virtual ~AlphabeticIndexTest();
|
|
|
|
virtual void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL );
|
|
|
|
virtual void APITest();
|
|
virtual void ManyLocalesTest();
|
|
virtual void HackPinyinTest();
|
|
virtual void TestBug9009();
|
|
void TestIndexCharactersList();
|
|
/**
|
|
* Test AlphabeticIndex vs. root with script reordering.
|
|
*/
|
|
void TestHaniFirst();
|
|
/**
|
|
* Test AlphabeticIndex vs. Pinyin with script reordering.
|
|
*/
|
|
void TestPinyinFirst();
|
|
/**
|
|
* Test labels with multiple primary weights.
|
|
*/
|
|
void TestSchSt();
|
|
/**
|
|
* With no real labels, there should be only the underflow label.
|
|
*/
|
|
void TestNoLabels();
|
|
/**
|
|
* Test with the Bopomofo-phonetic tailoring.
|
|
*/
|
|
void TestChineseZhuyin();
|
|
void TestJapaneseKanji();
|
|
void TestChineseUnihan();
|
|
|
|
void testHasBuckets();
|
|
void checkHasBuckets(const Locale &locale, UScriptCode script);
|
|
};
|
|
|
|
#endif
|