ICU-2118
code coverage test X-SVN-Rev: 10577
This commit is contained in:
parent
59893d78c9
commit
acf94f2c42
@ -899,8 +899,6 @@ CollationAPITest::TestOperators(/* char* par */)
|
||||
doAssert((*col7 != *col9), "The two different table collations compared equal");
|
||||
doAssert((*col8 != *col9), "The two different table collations compared equal");
|
||||
|
||||
|
||||
|
||||
logln("operator tests ended.");
|
||||
delete col1;
|
||||
delete col2;
|
||||
@ -1787,8 +1785,13 @@ public:
|
||||
virtual int32_t getSortKey(const UChar*source, int32_t sourceLength,
|
||||
uint8_t*result, int32_t resultLength) const;
|
||||
virtual UnicodeSet *getTailoredSet(UErrorCode &status) const;
|
||||
virtual UBool operator!=(const TestCollator& other) const;
|
||||
};
|
||||
|
||||
inline UBool TestCollator::operator!=(const TestCollator& other) const {
|
||||
return Collator::operator!=(other);
|
||||
}
|
||||
|
||||
#define returnEComparisonResult(data) \
|
||||
if (data < 0) return EComparisonResult::LESS;\
|
||||
if (data > 0) return EComparisonResult::GREATER;\
|
||||
@ -1937,10 +1940,8 @@ void CollationAPITest::TestSubclass()
|
||||
{
|
||||
TestCollator col1;
|
||||
TestCollator col2;
|
||||
if (&col1 == &col2) {
|
||||
errln("2 different instance of TestCollator should fail");
|
||||
}
|
||||
if (col1.hashCode() != col2.hashCode()) {
|
||||
doAssert(col1 != col2, "2 instance of TestCollator should be different");
|
||||
if (col1.hashCode() != col2.hashCode()) {
|
||||
errln("Every TestCollator has the same hashcode");
|
||||
}
|
||||
UnicodeString abc("abc", 3);
|
||||
|
@ -292,7 +292,7 @@ void CollationIteratorTest::TestMaxExpansion(/* char* par */)
|
||||
order = iter->previous(status);
|
||||
|
||||
/* thai management */
|
||||
if (order == 0)
|
||||
if (CollationElementIterator::isIgnorable(order))
|
||||
order = iter->previous(status);
|
||||
|
||||
while (U_SUCCESS(status)
|
||||
|
Loading…
Reference in New Issue
Block a user