/********************************************************************
* COPYRIGHT:
- * Copyright (c) 2002-2003, International Business Machines Corporation and
+ * Copyright (c) 2002-2007, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
//---------------------------------------------------------------------------
UVector32Test::UVector32Test()
{
-};
+}
UVector32Test::~UVector32Test()
{
-};
+}
#define TEST_ASSERT(expr) \
if ((expr)==FALSE) {\
- errln("RegexTest failure at line %d.\n", __LINE__);\
+ errln("UVector32Test failure at line %d.\n", __LINE__);\
}
//---------------------------------------------------------------------------
a->setSize(20000);
int32_t *resizedBuf;
resizedBuf = a->getBuffer();
- TEST_ASSERT(buf != resizedBuf);
+ //TEST_ASSERT(buf != resizedBuf); // The buffer might have been realloc'd
TEST_ASSERT(resizedBuf[0] == 10);
TEST_ASSERT(resizedBuf[1] == 20);
delete a;
- //
- // RTTI
- //
- status = U_ZERO_ERROR;
- a = new UVector32(status);
- TEST_ASSERT(a->getDynamicClassID() == UVector32::getStaticClassID());
- TEST_ASSERT(a->getDynamicClassID() != UVector::getStaticClassID());
- TEST_CHECK_STATUS(status);
- delete a;
-
//
// empty
//
TEST_CHECK_STATUS(status);
delete a;
-};
+}