ICU-4092 Fix previous checkin for Linux.
X-SVN-Rev: 16986
This commit is contained in:
parent
fd3cc251f5
commit
8ab45b2d62
@ -135,15 +135,15 @@ void UVectorTest::UStack_API() {
|
||||
status = U_ZERO_ERROR;
|
||||
a = new UStack(NULL, UVectorTest_compareCstrings, status);
|
||||
TEST_ASSERT(a->empty());
|
||||
a->push("abc", status);
|
||||
a->push((void*)"abc", status);
|
||||
TEST_ASSERT(!a->empty());
|
||||
a->push("bcde", status);
|
||||
a->push("cde", status);
|
||||
a->push((void*)"bcde", status);
|
||||
a->push((void*)"cde", status);
|
||||
TEST_CHECK_STATUS(status);
|
||||
TEST_ASSERT(strcmp("cde", (const char *)a->peek()) == 0);
|
||||
TEST_ASSERT(a->search("cde") == 1);
|
||||
TEST_ASSERT(a->search("bcde") == 2);
|
||||
TEST_ASSERT(a->search("abc") == 3);
|
||||
TEST_ASSERT(a->search((void*)"cde") == 1);
|
||||
TEST_ASSERT(a->search((void*)"bcde") == 2);
|
||||
TEST_ASSERT(a->search((void*)"abc") == 3);
|
||||
TEST_ASSERT(strcmp("abc", (const char *)a->firstElement()) == 0);
|
||||
TEST_ASSERT(strcmp("cde", (const char *)a->lastElement()) == 0);
|
||||
TEST_ASSERT(strcmp("cde", (const char *)a->pop()) == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user