Searched refs:sortk1 (Results 1 – 6 of 6) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | apicoll.cpp | 465 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local 468 col3->getCollationKey(test1, sortk1, status); in TestHashCode() 472 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode() 495 CollationKey sortk1, sortk2; in TestCollationKey() local 531 col->getCollationKey(NULL, 0, sortk1, key1Status); in TestCollationKey() 532 doAssert(sortk1.isBogus() && (sortk1.getByteArray(length), length) == 0, in TestCollationKey() 538 col->getCollationKey(test1, sortk1, key1Status); in TestCollationKey() 543 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey() 549 sortkNew = sortk1; in TestCollationKey() 550 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationAPITest.java | 61 CollationKey sortk1 = col.getCollationKey(""); in TestCollationKey() local 63 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 73 doAssert(sortkIgnorable.compareTo(sortk1) == 0, in TestCollationKey() 77 sortk1 = col.getCollationKey(null); in TestCollationKey() 78 doAssert(sortk1 == null, "Error code should return bogus collation key"); in TestCollationKey() 81 sortk1 = col.getCollationKey(test1); in TestCollationKey() 83 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey() 86 sortkNew = sortk1; in TestCollationKey() 87 doAssert(!(sortk1.equals(sortk2)), "The sort keys should be different"); in TestCollationKey() 88 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey() [all …]
|
D | CollationRegressionTest.java | 1188 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local 1189 byte[] bytes = sortk1.toByteArray(); in printKey()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationAPITest.java | 60 CollationKey sortk1 = col.getCollationKey(""); in TestCollationKey() local 62 byte[] bytes = sortk1.toByteArray(); in TestCollationKey() 72 doAssert(sortkIgnorable.compareTo(sortk1) == 0, in TestCollationKey() 76 sortk1 = col.getCollationKey(null); in TestCollationKey() 77 doAssert(sortk1 == null, "Error code should return bogus collation key"); in TestCollationKey() 80 sortk1 = col.getCollationKey(test1); in TestCollationKey() 82 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey() 85 sortkNew = sortk1; in TestCollationKey() 86 doAssert(!(sortk1.equals(sortk2)), "The sort keys should be different"); in TestCollationKey() 87 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey() [all …]
|
D | CollationRegressionTest.java | 1187 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local 1188 byte[] bytes = sortk1.toByteArray(); in printKey()
|
/external/icu/icu4c/source/test/cintltst/ |
D | capitst.c | 1072 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local 1128 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() 1129 memset(sortk1,0xFE, sortklen); in TestSortKey() 1130 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, sortklen+1); in TestSortKey() 1145 doAssert( (memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" > \"abcda\""); in TestSortKey() 1146 doAssert( (memcmp(sortk2, sortk1, sortklen) < 0), "Result should be \"abcda\" < \"Abcda\""); in TestSortKey() 1172 free(sortk1); in TestSortKey() 1179 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() 1180 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, sortklen+1); in TestSortKey() 1185 doAssert( !(memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" == \"abcda\""); in TestSortKey() [all …]
|