/******************************************************************** * COPYRIGHT: * Copyright (c) 1997-2003, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #include "tsdtfmsy.h" #include "unicode/dtfmtsym.h" void IntlTestDateFormatSymbols::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par*/ ) { if (exec) logln("TestSuite DateFormatSymbols"); switch (index) { case 0: name = "DateFormatSymbols test"; if (exec) { logln("DateFormatSymbols test---"); logln(""); testSymbols(/*par*/); } break; case 1: name = "TestGetMonths"; if (exec) { logln("TestGetMonths test---"); logln(""); TestGetMonths(); } break; default: name = ""; break; } } /** * Test getMonths. */ void IntlTestDateFormatSymbols::TestGetMonths() { UErrorCode status = U_ZERO_ERROR; int32_t cnt; const UnicodeString* month; DateFormatSymbols *symbol; symbol=new DateFormatSymbols(Locale::getDefault(), status); month=symbol->getMonths(cnt); logln((UnicodeString)"size = " + cnt); for (int32_t i=0; i