Searched refs:sortk1 (Results 1 – 6 of 6) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | apicoll.cpp | 482 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local 485 col3->getCollationKey(test1, sortk1, status); in TestHashCode() 489 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode() 512 CollationKey sortk1, sortk2; in TestCollationKey() local 548 col->getCollationKey(NULL, 0, sortk1, key1Status); in TestCollationKey() 549 doAssert(sortk1.isBogus() && (sortk1.getByteArray(length), length) == 0, in TestCollationKey() 555 col->getCollationKey(test1, sortk1, key1Status); in TestCollationKey() 560 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey() 566 sortkNew = sortk1; in TestCollationKey() 567 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationAPITest.java | 63 CollationKey sortk1 = col.getCollationKey(""); in TestCollationKey() local 65 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 75 doAssert(sortkIgnorable.compareTo(sortk1) == 0, in TestCollationKey() 79 sortk1 = col.getCollationKey(null); in TestCollationKey() 80 doAssert(sortk1 == null, "Error code should return bogus collation key"); in TestCollationKey() 83 sortk1 = col.getCollationKey(test1); in TestCollationKey() 85 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey() 88 sortkNew = sortk1; in TestCollationKey() 89 doAssert(!(sortk1.equals(sortk2)), "The sort keys should be different"); in TestCollationKey() 90 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey() [all …]
|
D | CollationRegressionTest.java | 1190 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local 1191 byte[] bytes = sortk1.toByteArray(); in printKey()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationAPITest.java | 66 CollationKey sortk1 = col.getCollationKey(""); in TestCollationKey() local 68 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 78 doAssert(sortkIgnorable.compareTo(sortk1) == 0, in TestCollationKey() 82 sortk1 = col.getCollationKey(null); in TestCollationKey() 83 doAssert(sortk1 == null, "Error code should return bogus collation key"); in TestCollationKey() 86 sortk1 = col.getCollationKey(test1); in TestCollationKey() 88 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey() 91 sortkNew = sortk1; in TestCollationKey() 92 doAssert(!(sortk1.equals(sortk2)), "The sort keys should be different"); in TestCollationKey() 93 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey() [all …]
|
D | CollationRegressionTest.java | 1193 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local 1194 byte[] bytes = sortk1.toByteArray(); in printKey()
|
/external/icu/icu4c/source/test/cintltst/ |
D | capitst.c | 1073 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local 1129 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() 1130 memset(sortk1,0xFE, sortklen); in TestSortKey() 1131 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, sortklen+1); in TestSortKey() 1146 doAssert( (memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" > \"abcda\""); in TestSortKey() 1147 doAssert( (memcmp(sortk2, sortk1, sortklen) < 0), "Result should be \"abcda\" < \"Abcda\""); in TestSortKey() 1173 free(sortk1); in TestSortKey() 1180 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() 1181 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, sortklen+1); in TestSortKey() 1186 doAssert( !(memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" == \"abcda\""); in TestSortKey() [all …]
|