]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/localebuildertest.h
ICU-64260.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / localebuildertest.h
1 // © 2018 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3
4 #include "intltest.h"
5 #include "unicode/localebuilder.h"
6
7
8 /**
9 * Tests for the LocaleBuilder class
10 **/
11 class LocaleBuilderTest: public IntlTest {
12 public:
13 LocaleBuilderTest();
14 virtual ~LocaleBuilderTest();
15
16 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
17
18 void TestAddRemoveUnicodeLocaleAttribute(void);
19 void TestAddRemoveUnicodeLocaleAttributeWellFormed(void);
20 void TestAddUnicodeLocaleAttributeIllFormed(void);
21 void TestLocaleBuilder(void);
22 void TestLocaleBuilderBasic(void);
23 void TestPosixCases(void);
24 void TestSetExtensionOthers(void);
25 void TestSetExtensionPU(void);
26 void TestSetExtensionT(void);
27 void TestSetExtensionU(void);
28 void TestSetExtensionValidateOthersIllFormed(void);
29 void TestSetExtensionValidateOthersWellFormed(void);
30 void TestSetExtensionValidatePUIllFormed(void);
31 void TestSetExtensionValidatePUWellFormed(void);
32 void TestSetExtensionValidateTIllFormed(void);
33 void TestSetExtensionValidateTWellFormed(void);
34 void TestSetExtensionValidateUIllFormed(void);
35 void TestSetExtensionValidateUWellFormed(void);
36 void TestSetLanguageIllFormed(void);
37 void TestSetLanguageWellFormed(void);
38 void TestSetLocale(void);
39 void TestSetRegionIllFormed(void);
40 void TestSetRegionWellFormed(void);
41 void TestSetScriptIllFormed(void);
42 void TestSetScriptWellFormed(void);
43 void TestSetUnicodeLocaleKeywordIllFormedKey(void);
44 void TestSetUnicodeLocaleKeywordIllFormedValue(void);
45 void TestSetUnicodeLocaleKeywordWellFormed(void);
46 void TestSetVariantIllFormed(void);
47 void TestSetVariantWellFormed(void);
48
49 private:
50 void Verify(LocaleBuilder& bld, const char* expected, const char* msg);
51 };