scuffed-code/icu4c/source/test/intltest/locnmtst.h
Frank Tang 53dd621e3a ICU-12760 support UDISPCTX_TYPE_SUBSTITUTE_HANDLING
add tests

remove printf

fix localeDisplayName and add tests

fix fallback

remove get
2019-05-13 17:38:07 -07:00

47 lines
1.4 KiB
C++

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
* Copyright (c) 2010-2016, International Business Machines Corporation
* and others. All Rights Reserved.
********************************************************************/
#include "intltest.h"
#include "unicode/locdspnm.h"
/**
* Tests for the LocaleDisplayNames class
**/
class LocaleDisplayNamesTest: public IntlTest {
public:
LocaleDisplayNamesTest();
virtual ~LocaleDisplayNamesTest();
void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL);
#if !UCONFIG_NO_FORMATTING
/**
* Test methods to set and get data fields
**/
void TestCreate(void);
void TestCreateDialect(void);
void TestWithKeywordsAndEverything(void);
void TestUldnOpen(void);
void TestUldnOpenDialect(void);
void TestUldnWithKeywordsAndEverything(void);
void TestUldnComponents(void);
void TestRootEtc(void);
void TestCurrencyKeyword(void);
void TestUnknownCurrencyKeyword(void);
void TestUntranslatedKeywords(void);
void TestPrivateUse(void);
void TestUldnDisplayContext(void);
void TestUldnWithGarbage(void);
void TestSubstituteHandling(void);
void VerifySubstitute(LocaleDisplayNames* ldn);
void VerifyNoSubstitute(LocaleDisplayNames* ldn);
#endif
};