• Home
  • Raw
  • Download

Lines Matching refs:doAssert

53 CollationAPITest::doAssert(UBool condition, const char *message)  in doAssert()  function in CollationAPITest
100 doAssert((col->compare("ab", "abc") == Collator::LESS), "ab < abc comparison failed"); in TestProperty()
101 doAssert((col->compare("ab", "AB") == Collator::LESS), "ab < AB comparison failed"); in TestProperty()
102doAssert((col->compare("blackbird", "black-bird") == Collator::GREATER), "black-bird > blackbird c… in TestProperty()
103doAssert((col->compare("black bird", "black-bird") == Collator::LESS), "black bird > black-bird co… in TestProperty()
104doAssert((col->compare("Hello", "hello") == Collator::GREATER), "Hello > hello comparison failed"); in TestProperty()
105doAssert((col->compare("","",success) == UCOL_EQUAL), "Comparison between empty strings failed"); in TestProperty()
107doAssert((col->compareUTF8("\x61\x62\xc3\xa4", "\x61\x62\xc3\x9f", success) == UCOL_LESS), "ab a-u… in TestProperty()
115doAssert((col->compare(abauIter, abssIter, success) == UCOL_LESS), "ab a-umlaut < ab sharp-s UChar… in TestProperty()
120doAssert((col->compare("ab", "abc", 2) == Collator::EQUAL), "ab = abc with length 2 comparison fai… in TestProperty()
121doAssert((col->compare("ab", "AB", 2) == Collator::LESS), "ab < AB with length 2 comparison faile… in TestProperty()
122doAssert((col->compare("ab", "Aa", 1) == Collator::LESS), "ab < Aa with length 1 comparison faile… in TestProperty()
123doAssert((col->compare("ab", "Aa", 2) == Collator::GREATER), "ab > Aa with length 2 comparison fa… in TestProperty()
124doAssert((col->compare("black-bird", "blackbird", 5) == Collator::EQUAL), "black-bird = blackbird … in TestProperty()
125doAssert((col->compare("black bird", "black-bird", 10) == Collator::LESS), "black bird < black-bir… in TestProperty()
126doAssert((col->compare("Hello", "hello", 5) == Collator::GREATER), "Hello > hello with length 5 co… in TestProperty()
132 doAssert((col->getStrength() == Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
133doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
138doAssert((col->getStrength() != Collator::TERTIARY), "collation object's strength is secondary dif… in TestProperty()
139doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
140doAssert((col->getStrength() == Collator::SECONDARY), "collation object has the wrong strength"); in TestProperty()
146 doAssert((name == UnicodeString("Englisch (Vereinigte Staaten)")), "getDisplayName failed"); in TestProperty()
150 doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed"); in TestProperty()
156doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed if this is an … in TestProperty()
169 doAssert(daRules.indexOf("aa") >= 0, "da_DK rules do not contain 'aa'"); in TestProperty()
182 doAssert((col->getStrength() != Collator::TERTIARY), "collation object has the wrong strength"); in TestProperty()
183doAssert((col->getStrength() == Collator::PRIMARY), "collation object's strength is not primary di… in TestProperty()
187doAssert((col->getStrength() == Collator::TERTIARY), "collation object's strength is not tertiary … in TestProperty()
188doAssert((col->getStrength() != Collator::PRIMARY), "collation object's strength is primary differ… in TestProperty()
189doAssert((col->getStrength() != Collator::SECONDARY), "collation object's strength is secondary di… in TestProperty()
204 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty()
217 doAssert((*frCol != *junk), "The junk is the same as the fr_CA collator."); in TestProperty()
220 doAssert((*frCol == *aFrCol), "The cloning of a fr_CA collator failed."); in TestProperty()
305 doAssert(rule1 != rule2, "Default collator getRules failed"); in TestRuleBasedColl()
306 doAssert(rule2 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()
307 doAssert(rule1 != rule3, "Default collator getRules failed"); in TestRuleBasedColl()
316 doAssert(rule2 == rule4, "Default collator getRules failed"); in TestRuleBasedColl()
432 doAssert(col->greater(test1, test2), "Result should be \"abCda\" >>> \"abcda\" "); in TestSafeClone()
433doAssert(someCollators[index]->equals(test1, test2), "Result should be \"abcda\" == \"abCda\""); in TestSafeClone()
471 doAssert(col1->hashCode() != col2->hashCode(), "Hash test1 result incorrect" ); in TestHashCode()
472 doAssert(!(col1->hashCode() == col2->hashCode()), "Hash test2 result incorrect" ); in TestHashCode()
473 doAssert(col1->hashCode() == col3->hashCode(), "Hash result not equal" ); in TestHashCode()
489 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
490 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
522 doAssert(!sortkNone.isBogus() && length == 0, in TestCollationKey()
528 doAssert(sortkEmpty.isBogus() == FALSE && length == 3 && in TestCollationKey()
531 doAssert(sortkNone.compareTo(sortkEmpty) == Collator::LESS, in TestCollationKey()
533 doAssert(sortkEmpty.compareTo(sortkNone) == Collator::GREATER, in TestCollationKey()
541 doAssert(!sortkIgnorable.isBogus() && length == 3, in TestCollationKey()
543 doAssert(sortkIgnorable.compareTo(sortkEmpty) == Collator::EQUAL, in TestCollationKey()
549 doAssert(sortk1.isBogus() && (sortk1.getByteArray(length), length) == 0, in TestCollationKey()
560 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey()
567 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey()
568 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
569 doAssert((sortk2 == sortk3), "The sort keys should be the same"); in TestCollationKey()
570 doAssert((sortk1 == sortkNew), "The sort keys assignment failed"); in TestCollationKey()
571 doAssert((sortk1.hashCode() == sortkNew.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
572 doAssert((sortkNew != sortk3), "The sort keys should be different"); in TestCollationKey()
573doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
574doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
575doAssert(sortkEmpty.compareTo(sortk1) == Collator::LESS, "Result should be (empty key) <<< \"Abcda… in TestCollationKey()
576doAssert(sortk1.compareTo(sortkEmpty) == Collator::GREATER, "Result should be \"Abcda\" >>> (empty… in TestCollationKey()
577doAssert(sortkEmpty.compareTo(sortkEmpty) == Collator::EQUAL, "Result should be (empty key) == (em… in TestCollationKey()
578doAssert(sortk1.compareTo(sortk3, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> \"abcd… in TestCollationKey()
579doAssert(sortk2.compareTo(sortk3, success) == UCOL_EQUAL, "Result should be \"abcda\" == \"abcda\"… in TestCollationKey()
580doAssert(sortkEmpty.compareTo(sortk1, success) == UCOL_LESS, "Result should be (empty key) <<< \"A… in TestCollationKey()
581doAssert(sortk1.compareTo(sortkEmpty, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> (e… in TestCollationKey()
582doAssert(sortkEmpty.compareTo(sortkEmpty, success) == UCOL_EQUAL, "Result should be (empty key) ==… in TestCollationKey()
598doAssert(sortk1.compareTo(sortk4) == Collator::EQUAL, "CollationKey::toByteArray(sortk1) Failed."); in TestCollationKey()
599doAssert(sortk2.compareTo(sortk5) == Collator::EQUAL, "CollationKey::toByteArray(sortk2) Failed."); in TestCollationKey()
600 doAssert(sortk4.compareTo(sortk5) == Collator::GREATER, "sortk4 >>> sortk5 Failed"); in TestCollationKey()
601doAssert(sortk1.compareTo(sortk6) == Collator::EQUAL, "CollationKey::getByteArray(sortk1) Failed."… in TestCollationKey()
602doAssert(sortk2.compareTo(sortk7) == Collator::EQUAL, "CollationKey::getByteArray(sortk2) Failed."… in TestCollationKey()
603 doAssert(sortk6.compareTo(sortk7) == Collator::GREATER, "sortk6 >>> sortk7 Failed"); in TestCollationKey()
606 doAssert(sortk1 == sortk4, "sortk1 == sortk4 Failed."); in TestCollationKey()
607 doAssert(sortk2 == sortk5, "sortk2 == sortk5 Failed."); in TestCollationKey()
608 doAssert(sortk1 != sortk5, "sortk1 != sortk5 Failed."); in TestCollationKey()
609 doAssert(sortk1 == sortk6, "sortk1 == sortk6 Failed."); in TestCollationKey()
610 doAssert(sortk2 == sortk7, "sortk2 == sortk7 Failed."); in TestCollationKey()
611 doAssert(sortk1 != sortk7, "sortk1 != sortk7 Failed."); in TestCollationKey()
617 doAssert(sortk1 == sortk3, "sortk1 = sortk3 assignment Failed."); in TestCollationKey()
618 doAssert(sortk2 != sortk3, "sortk2 != sortk3 Failed."); in TestCollationKey()
622 doAssert(col->getCollationKey(test1, sortk1, key1Status).compareTo( in TestCollationKey()
670 doAssert((*iterator1 == *iterator2), "The two iterators should be the same"); in TestElemIter()
671 doAssert((*iterator1 != *iterator3), "The two iterators should be different"); in TestElemIter()
673 doAssert((*coliter == *iterator1), "The two iterators should be the same"); in TestElemIter()
674 doAssert((*coliter == *iterator2), "The two iterators should be the same"); in TestElemIter()
675 doAssert((*coliter != *iterator3), "The two iterators should be different"); in TestElemIter()
684 doAssert((*iterator1 != *iterator2), "The first iterator advance failed"); in TestElemIter()
686 doAssert((order1 != order2), "The order result should not be the same"); in TestElemIter()
694 doAssert((*iterator1 == *iterator2), "The second iterator advance failed"); in TestElemIter()
695 doAssert((order1 == order2), "The order result should be the same"); in TestElemIter()
703 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
705 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter()
707 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter()
717 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
719 doAssert((CollationElementIterator::tertiaryOrder(order1) != in TestElemIter()
729 doAssert((order1 != CollationElementIterator::NULLORDER), "Unexpected end of iterator reached"); in TestElemIter()
739 doAssert((*iterator1 != *iterator2), "The first iterator advance failed"); in TestElemIter()
748 doAssert((*iterator1 == *iterator2), "The second iterator advance failed"); in TestElemIter()
749 doAssert((order1 == order2), "The order result should be the same"); in TestElemIter()
758 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
760 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter()
762 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter()
772 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter()
774 doAssert((CollationElementIterator::tertiaryOrder(order1) != in TestElemIter()
789 doAssert((order1 != CollationElementIterator::NULLORDER), "Unexpected end of iterator reached"); in TestElemIter()
790 doAssert((*iterator2 != *iterator3), "The iterators should be different"); in TestElemIter()
846 doAssert((*col1 != *col2), "The two different table collations compared equal"); in TestOperators()
848 doAssert((*col1 == *col2), "Collator objects not equal after assignment (operator=)"); in TestOperators()
856 doAssert((*col1 != *col3), "The two different table collations compared equal"); in TestOperators()
859 doAssert((*col1 == *col4), "Cloned collation objects not equal"); in TestOperators()
860 doAssert((*col3 != *col4), "Two different table collations compared equal"); in TestOperators()
861 doAssert((*col3 == *col5), "Cloned collation objects not equal"); in TestOperators()
862 doAssert((*col4 != *col5), "Two cloned collations compared equal"); in TestOperators()
870doAssert((((RuleBasedCollator*)col3)->getRules() == col6->getRules()), "Default collator getRules … in TestOperators()
891 doAssert((*col7 != *col9), "The two different table collations compared equal"); in TestOperators()
892 doAssert((*col8 != *col9), "The two different table collations compared equal"); in TestOperators()
917 doAssert((*col1 == *col2), "Cloned object is not equal to the orginal"); in TestDuplicate()
924 doAssert((*col1 != *col3), "Cloned object is equal to some dummy"); in TestDuplicate()
926 doAssert((*col1 == *col3), "Copied object is not equal to the orginal"); in TestDuplicate()
971 doAssert((!col->equals(test1, test2) ), "Result should be \"Abcda\" != \"abcda\""); in TestCompare()
972 doAssert((col->greater(test1, test2) ), "Result should be \"Abcda\" >>> \"abcda\""); in TestCompare()
973 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" >>> \"abcda\""); in TestCompare()
978 doAssert((col->equals(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
979 doAssert((!col->greater(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
980 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
985 doAssert((col->equals(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
986 doAssert((!col->greater(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
987 doAssert((col->greaterOrEqual(test1, test2) ), "Result should be \"Abcda\" == \"abcda\""); in TestCompare()
995 doAssert((col->compare(test1, test2) == Collator::EQUAL), "Problem"); in TestCompare()
996 doAssert((col->compare(test1, test2, success) == UCOL_EQUAL), "Problem"); in TestCompare()
997 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::EQUAL), "Problem"); in TestCompare()
998 doAssert((col->compare(t1, t1Len, t2, t2Len, success) == UCOL_EQUAL), "Problem"); in TestCompare()
999 doAssert((col->compare(test1, test2, t1Len) == Collator::EQUAL), "Problem"); in TestCompare()
1000 doAssert((col->compare(test1, test2, t1Len, success) == UCOL_EQUAL), "Problem"); in TestCompare()
1003 doAssert((col->compare(test1, test2) == Collator::GREATER), "Problem"); in TestCompare()
1004 doAssert((col->compare(test1, test2, success) == UCOL_GREATER), "Problem"); in TestCompare()
1005 doAssert((col->compare(t1, t1Len, t2, t2Len) == Collator::GREATER), "Problem"); in TestCompare()
1006 doAssert((col->compare(t1, t1Len, t2, t2Len, success) == UCOL_GREATER), "Problem"); in TestCompare()
1007 doAssert((col->compare(test1, test2, t1Len) == Collator::GREATER), "Problem"); in TestCompare()
1008 doAssert((col->compare(test1, test2, t1Len, success) == UCOL_GREATER), "Problem"); in TestCompare()
1118 doAssert(key1.compareTo(key2) == Collator::GREATER, in TestSortKey()
1120 doAssert(key2.compareTo(key1) == Collator::LESS, in TestSortKey()
1122 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1136 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1139 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1142 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1150 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1153 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1156 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1167 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1170 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1173 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1183 doAssert(key1.compareTo(key2) == Collator::EQUAL, in TestSortKey()
1185 doAssert(key2.compareTo(key3) == Collator::EQUAL, in TestSortKey()
1189 doAssert(memcmp(tempkey, key2primary.getAlias(), keylength - 1) == 0, in TestSortKey()
1197 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1200 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1203 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1211 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1214 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1217 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
1225 doAssert(memcmp(tempkey, sortkey1, keylength) == 0, in TestSortKey()
1228 doAssert(memcmp(tempkey, sortkey2, keylength) == 0, in TestSortKey()
1231 doAssert(memcmp(tempkey, sortkey3, keylength) == 0, in TestSortKey()
2251 doAssert(col1 != col2, "2 instances of TestCollator should be different"); in TestSubclass()