X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..HEAD:/icuSources/test/intltest/dtifmtts.h diff --git a/icuSources/test/intltest/dtifmtts.h b/icuSources/test/intltest/dtifmtts.h index 3d50f72e..b05a57a8 100644 --- a/icuSources/test/intltest/dtifmtts.h +++ b/icuSources/test/intltest/dtifmtts.h @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** - * COPYRIGHT: - * Copyright (c) 2008-2015 International Business Machines Corporation and + * COPYRIGHT: + * Copyright (c) 2008-2016 International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -13,12 +15,13 @@ #if !UCONFIG_NO_FORMATTING #include "intltest.h" +#include "itformat.h" /** * Test basic functionality of various API functions **/ -class DateIntervalFormatTest: public IntlTest { - void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); +class DateIntervalFormatTest: public IntlTestWithFieldPosition { + void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); public: /** @@ -54,6 +57,16 @@ public: void testTicket11583_2(); + void testTicket11985(); + + void testTicket11669(); + void threadFunc11669(int32_t threadNum); + + void testTicket12065(); + + void testFormattedDateInterval(); + void testCreateInstanceForAllLocales(); + private: /** * Test formatting against expected result @@ -61,15 +74,15 @@ private: void expect(const char** data, int32_t data_length); /** - * Test formatting against expected result using user defined + * Test formatting against expected result using user defined * DateIntervalInfo */ void expectUserDII(const char** data, int32_t data_length); /** - * Stress test formatting + * Stress test formatting */ - void stress(const char** data, int32_t data_length, const Locale& loc, + void stress(const char** data, int32_t data_length, const Locale& loc, const char* locName); };