Lines Matching refs:doAssert

50 CollationAPITest::doAssert(UBool condition, const char *message)  in doAssert()  function in CollationAPITest
104 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
105 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
106doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
107doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
108doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
109doAssert((col->compare("","",success) == UCOL_EQUAL), "Comparison between empty strings failed"); in TestProperty()
111doAssert((col->compareUTF8("\x61\x62\xc3\xa4", "\x61\x62\xc3\x9f", success) == UCOL_LESS), "ab a-u… in TestProperty()
119doAssert((col->compare(abauIter, abssIter, success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UChar… in TestProperty()
124doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
125doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
126doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
127doAssert((col->compare("ab", "Aa", 2) == Collator::GREATER), "ab > Aa with length 2 comparison fa… in TestProperty()
128doAssert((col->compare("black-bird", "blackbird", 5) == Collator::EQUAL), "black-bird = blackbird … in TestProperty()
129doAssert((col->compare("black bird", "black-bird", 10) == Collator::LESS), "black bird < black-bir… in TestProperty()
130doAssert((col->compare("Hello", "hello", 5) == Collator::GREATER), "Hello > hello with length 5 co… in TestProperty()
136 doAssert((col->getStrength() == Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
137doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
142doAssert((col->getStrength() != Collator::TERTIARY), "collation object's strength is secondary dif… in TestProperty()
143doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
144doAssert((col->getStrength() == Collator::SECONDARY), "collation object has the wrong strength"); in TestProperty()
150 doAssert((name == UnicodeString("Englisch (Vereinigte Staaten)")), "getDisplayName failed"); in TestProperty()
154 doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed"); in TestProperty()
160doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed if this is an … in TestProperty()
173 doAssert(daRules.indexOf("aa") >= 0, "da_DK rules do not contain 'aa'"); in TestProperty()
186 doAssert((col->getStrength() != Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
187doAssert((col->getStrength() == Collator::PRIMARY), "collation object's strength is not primary di… in TestProperty()
191doAssert((col->getStrength() == Collator::TERTIARY), "collation object's strength is not tertiary … in TestProperty()
192doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
193doAssert((col->getStrength() != Collator::SECONDARY), "collation object's strength is secondary di… in TestProperty()
208 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty()
221 doAssert((*frCol != *junk), "The junk is the same as the fr_CA collator."); in TestProperty()
224 doAssert((*frCol == *aFrCol), "The cloning of a fr_CA collator failed."); in TestProperty()
286 doAssert(rule1 != rule2, "Default collator getRules failed"); in TestRuleBasedColl()
287 doAssert(rule2 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()
288 doAssert(rule1 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()
297 doAssert(rule2 == rule4, "Default collator getRules failed"); in TestRuleBasedColl()
413 doAssert(col->greater(test1, test2), "Result should be \"abCda\" >>> \"abcda\" "); in TestSafeClone()
414doAssert(someCollators[index]->equals(test1, test2), "Result should be \"abcda\" == \"abCda\""); in TestSafeClone()
452 doAssert(col1->hashCode() != col2->hashCode(), "Hash test1 result incorrect" ); in TestHashCode()
453 doAssert(!(col1->hashCode() == col2->hashCode()), "Hash test2 result incorrect" ); in TestHashCode()
454 doAssert(col1->hashCode() == col3->hashCode(), "Hash result not equal" ); in TestHashCode()
470 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
471 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
503 doAssert(!sortkNone.isBogus() && length == 0, in TestCollationKey()
509 doAssert(sortkEmpty.isBogus() == FALSE && length == 3 && in TestCollationKey()
512 doAssert(sortkNone.compareTo(sortkEmpty) == Collator::LESS, in TestCollationKey()
514 doAssert(sortkEmpty.compareTo(sortkNone) == Collator::GREATER, in TestCollationKey()
522 doAssert(!sortkIgnorable.isBogus() && length == 3, in TestCollationKey()
524 doAssert(sortkIgnorable.compareTo(sortkEmpty) == Collator::EQUAL, in TestCollationKey()
530 doAssert(sortk1.isBogus() && (sortk1.getByteArray(length), length) == 0, in TestCollationKey()
541 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey()
548 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey()
549 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
550 doAssert((sortk2 == sortk3), "The sort keys should be the same"); in TestCollationKey()
551 doAssert((sortk1 == sortkNew), "The sort keys assignment failed"); in TestCollationKey()
552 doAssert((sortk1.hashCode() == sortkNew.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
553 doAssert((sortkNew != sortk3), "The sort keys should be different"); in TestCollationKey()
554doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
555doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
556doAssert(sortkEmpty.compareTo(sortk1) == Collator::LESS, "Result should be (empty key) <<< \"Abcda… in TestCollationKey()
557doAssert(sortk1.compareTo(sortkEmpty) == Collator::GREATER, "Result should be \"Abcda\" >>> (empty… in TestCollationKey()
558doAssert(sortkEmpty.compareTo(sortkEmpty) == Collator::EQUAL, "Result should be (empty key) == (em… in TestCollationKey()
559doAssert(sortk1.compareTo(sortk3, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> \"abcd… in TestCollationKey()
560doAssert(sortk2.compareTo(sortk3, success) == UCOL_EQUAL, "Result should be \"abcda\" == \"abcda\"… in TestCollationKey()
561doAssert(sortkEmpty.compareTo(sortk1, success) == UCOL_LESS, "Result should be (empty key) <<< \"A… in TestCollationKey()
562doAssert(sortk1.compareTo(sortkEmpty, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> (e… in TestCollationKey()
563doAssert(sortkEmpty.compareTo(sortkEmpty, success) == UCOL_EQUAL, "Result should be (empty key) ==… in TestCollationKey()
579doAssert(sortk1.compareTo(sortk4) == Collator::EQUAL, "CollationKey::toByteArray(sortk1) Failed."); in TestCollationKey()
580doAssert(sortk2.compareTo(sortk5) == Collator::EQUAL, "CollationKey::toByteArray(sortk2) Failed."); in TestCollationKey()
581 doAssert(sortk4.compareTo(sortk5) == Collator::GREATER, "sortk4 >>> sortk5 Failed"); in TestCollationKey()
582doAssert(sortk1.compareTo(sortk6) == Collator::EQUAL, "CollationKey::getByteArray(sortk1) Failed."… in TestCollationKey()
583doAssert(sortk2.compareTo(sortk7) == Collator::EQUAL, "CollationKey::getByteArray(sortk2) Failed."… in TestCollationKey()
584 doAssert(sortk6.compareTo(sortk7) == Collator::GREATER, "sortk6 >>> sortk7 Failed"); in TestCollationKey()
587 doAssert(sortk1 == sortk4, "sortk1 == sortk4 Failed."); in TestCollationKey()
588 doAssert(sortk2 == sortk5, "sortk2 == sortk5 Failed."); in TestCollationKey()
589 doAssert(sortk1 != sortk5, "sortk1 != sortk5 Failed."); in TestCollationKey()
590 doAssert(sortk1 == sortk6, "sortk1 == sortk6 Failed."); in TestCollationKey()
591 doAssert(sortk2 == sortk7, "sortk2 == sortk7 Failed."); in TestCollationKey()
592 doAssert(sortk1 != sortk7, "sortk1 != sortk7 Failed."); in TestCollationKey()
598 doAssert(sortk1 == sortk3, "sortk1 = sortk3 assignment Failed."); in TestCollationKey()
599 doAssert(sortk2 != sortk3, "sortk2 != sortk3 Failed."); in TestCollationKey()
603 doAssert(col->getCollationKey(test1, sortk1, key1Status).compareTo( in TestCollationKey()
651 doAssert((*iterator1 == *iterator2), "The two iterators should be the same"); in TestElemIter()
652 doAssert((*iterator1 != *iterator3), "The two iterators should be different"); in TestElemIter()
654 doAssert((*coliter == *iterator1), "The two iterators should be the same"); in TestElemIter()
655 doAssert((*coliter == *iterator2), "The two iterators should be the same"); in TestElemIter()
656 doAssert((*coliter != *iterator3), "The two iterators should be different"); in TestElemIter()
665 doAssert((*iterator1 != *iterator2), "The first iterator advance failed"); in TestElemIter()
667 doAssert((order1 != order2), "The order result should not be the same"); in TestElemIter()
675 doAssert((*iterator1 == *iterator2), "The second iterator advance failed"); in TestElemIter()
676 doAssert((order1 == order2), "The order result should be the same"); in TestElemIter()
684 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
686 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter()
688 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter()
698 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
700 doAssert((CollationElementIterator::tertiaryOrder(order1) != in TestElemIter()
710 doAssert((order1 != CollationElementIterator::NULLORDER), "Unexpected end of iterator reached"); in TestElemIter()
720 doAssert((*iterator1 != *iterator2), "The first iterator advance failed"); in TestElemIter()
729 doAssert((*iterator1 == *iterator2), "The second iterator advance failed"); in TestElemIter()
730 doAssert((order1 == order2), "The order result should be the same"); in TestElemIter()
739 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
741 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter()
743 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter()
753 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
755 doAssert((CollationElementIterator::tertiaryOrder(order1) != in TestElemIter()
770 doAssert((order1 != CollationElementIterator::NULLORDER), "Unexpected end of iterator reached"); in TestElemIter()
771 doAssert((*iterator2 != *iterator3), "The iterators should be different"); in TestElemIter()
827 doAssert((*col1 != *col2), "The two different table collations compared equal"); in TestOperators()
829 doAssert((*col1 == *col2), "Collator objects not equal after assignment (operator=)"); in TestOperators()
837 doAssert((*col1 != *col3), "The two different table collations compared equal"); in TestOperators()
840 doAssert((*col1 == *col4), "Cloned collation objects not equal"); in TestOperators()
841 doAssert((*col3 != *col4), "Two different table collations compared equal"); in TestOperators()
842 doAssert((*col3 == *col5), "Cloned collation objects not equal"); in TestOperators()
843 doAssert((*col4 != *col5), "Two cloned collations compared equal"); in TestOperators()
851doAssert((((RuleBasedCollator*)col3)->getRules() == col6->getRules()), "Default collator getRules … in TestOperators()
872 doAssert((*col7 != *col9), "The two different table collations compared equal"); in TestOperators()
873 doAssert((*col8 != *col9), "The two different table collations compared equal"); in TestOperators()
898 doAssert((*col1 == *col2), "Cloned object is not equal to the orginal"); in TestDuplicate()
905 doAssert((*col1 != *col3), "Cloned object is equal to some dummy"); in TestDuplicate()
907 doAssert((*col1 == *col3), "Copied object is not equal to the orginal"); in TestDuplicate()
952 doAssert((!col->equals(test1, test2) ), "Result should be \"Abcda\" != \"abcda\""); in TestCompare()
953 doAssert((col->greater(test1, test2) ), "Result should be \"Abcda\" >>> \"abcda\""); in TestCompare()
954 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" >>> \"abcda\""); in TestCompare()
959 doAssert((col->equals(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
960 doAssert((!col->greater(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
961 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
966 doAssert((col->equals(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
967 doAssert((!col->greater(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
968 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
976 doAssert((col->compare(test1, test2) == Collator::EQUAL), "Problem"); in TestCompare()
977 doAssert((col->compare(test1, test2, success) == UCOL_EQUAL), "Problem"); in TestCompare()
978 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::EQUAL), "Problem"); in TestCompare()
979 doAssert((col->compare(t1, t1Len, t2, t2Len, success) == UCOL_EQUAL), "Problem"); in TestCompare()
980 doAssert((col->compare(test1, test2, t1Len) == Collator::EQUAL), "Problem"); in TestCompare()
981 doAssert((col->compare(test1, test2, t1Len, success) == UCOL_EQUAL), "Problem"); in TestCompare()
984 doAssert((col->compare(test1, test2) == Collator::GREATER), "Problem"); in TestCompare()
985 doAssert((col->compare(test1, test2, success) == UCOL_GREATER), "Problem"); in TestCompare()
986 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::GREATER), "Problem"); in TestCompare()
987 doAssert((col->compare(t1, t1Len, t2, t2Len, success) == UCOL_GREATER), "Problem"); in TestCompare()
988 doAssert((col->compare(test1, test2, t1Len) == Collator::GREATER), "Problem"); in TestCompare()
989 doAssert((col->compare(test1, test2, t1Len, success) == UCOL_GREATER), "Problem"); in TestCompare()
1099 doAssert(key1.compareTo(key2) == Collator::GREATER, in TestSortKey()
1101 doAssert(key2.compareTo(key1) == Collator::LESS, in TestSortKey()
1103 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1117 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1120 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1123 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1131 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1134 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1137 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1148 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1151 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1154 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1164 doAssert(key1.compareTo(key2) == Collator::EQUAL, in TestSortKey()
1166 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1170 doAssert(memcmp(tempkey, key2primary.getAlias(), keylength - 1) == 0, in TestSortKey()
1178 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1181 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1184 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1192 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1195 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1198 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1206 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1209 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1212 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
2220 doAssert(col1 != col2, "2 instances of TestCollator should be different"); in TestSubclass()