Lines Matching refs:status
58 #define TEST_CHECK_STATUS(status) \
59 if (U_FAILURE(status)) {\
60 errln("UVectorTest failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
94 UErrorCode status = U_ZERO_ERROR;
97 a = new UVector(status);
98 TEST_CHECK_STATUS(status);
101 status = U_ZERO_ERROR;
102 a = new UVector(2000, status);
103 TEST_CHECK_STATUS(status);
106 status = U_ZERO_ERROR;
107 a = new UVector(status);
108 a->sortedInsert((int32_t)10, UVectorTest_compareInt32, status);
109 a->sortedInsert((int32_t)20, UVectorTest_compareInt32, status);
110 a->sortedInsert((int32_t)30, UVectorTest_compareInt32, status);
111 a->sortedInsert((int32_t)15, UVectorTest_compareInt32, status);
112 TEST_CHECK_STATUS(status);
126 UErrorCode status = U_ZERO_ERROR;
129 a = new UStack(status);
130 TEST_CHECK_STATUS(status);
133 status = U_ZERO_ERROR;
134 a = new UStack(2000, status);
135 TEST_CHECK_STATUS(status);
138 status = U_ZERO_ERROR;
139 a = new UStack(NULL, NULL, 2000, status);
140 TEST_CHECK_STATUS(status);
143 status = U_ZERO_ERROR;
144 a = new UStack(NULL, UVectorTest_compareCstrings, status);
146 a->push((void*)"abc", status);
148 a->push((void*)"bcde", status);
149 a->push((void*)"cde", status);
150 TEST_CHECK_STATUS(status);
171 UErrorCode status = U_ZERO_ERROR;
172 Hashtable *a = new Hashtable(status);
173 TEST_ASSERT((a->puti("a", 1, status) == 0));
176 TEST_ASSERT((a->puti("b", 2, status) == 0));
182 Hashtable b(status);
184 TEST_ASSERT((b.puti("b", 2, status) == 0));
193 TEST_ASSERT((a->puti("a", 1, status) == 0));