Searched refs:sortk2 (Results 1 – 4 of 4) sorted by relevance
/external/icu/icu4c/source/test/cintltst/ |
D | capitst.c | 1070 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local 1131 sortk2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() 1132 memset(sortk2,0xFE, sortklen); in TestSortKey() 1133 ucol_getSortKey(col, test2, u_strlen(test2), sortk2, sortklen+1); in TestSortKey() 1143 doAssert( (memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" > \"abcda\""); in TestSortKey() 1144 doAssert( (memcmp(sortk2, sortk1, sortklen) < 0), "Result should be \"abcda\" < \"Abcda\""); in TestSortKey() 1145 doAssert( (memcmp(sortk2, sortk3, sortklen) == 0), "Result should be \"abcda\" == \"abcda\""); in TestSortKey() 1161 sprintf(junk2+strlen(junk2), "%02X ",(int)( 0xFF & sortk2[i])); in TestSortKey() 1171 free(sortk2); in TestSortKey() 1180 sortk2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | apicoll.cpp | 463 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local 467 col3->getCollationKey(test2, sortk2, status); 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() 493 CollationKey sortk1, sortk2; in TestCollationKey() local 541 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey() 545 CollationKey sortk3(sortk2), sortkNew; 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() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationAPITest.java | 85 CollationKey sortk2 = col.getCollationKey(test2); in TestCollationKey() local 86 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey() 90 doAssert(!(sortk1.equals(sortk2)), "The sort keys should be different"); in TestCollationKey() 91 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey() 419 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local 422 sortk2 = col3.getCollationKey(test2); in TestHashCode() 425 … doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode() 426 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationAPITest.java | 81 CollationKey sortk2 = col.getCollationKey(test2); in TestCollationKey() local 82 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); 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() 415 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local 418 sortk2 = col3.getCollationKey(test2); in TestHashCode() 421 … doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode() 422 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
|