/* ******************************************************************** * COPYRIGHT: * (C) Copyright Taligent, Inc., 1997 * (C) Copyright International Business Machines Corporation, 1997 - 1998 * Licensed Material - Program-Property of IBM - All Rights Reserved. * US Government Users Restricted Rights - Use, duplication, or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. * ******************************************************************** */ #include "unicode/utypes.h" #include "tsdtfmsy.h" #include "unicode/dtfmtsym.h" void IntlTestDateFormatSymbols::runIndexedTest( int32_t index, bool_t exec, 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