Home
last modified time | relevance | path

Searched refs:sortk3 (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp482 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
487 col3->getCollationKey(test2, sortk3, status); in TestHashCode()
490 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
564 CollationKey sortk3(sortk2), sortkNew; in TestCollationKey() local
569 doAssert((sortk2 == sortk3), "The sort keys should be the same"); in TestCollationKey()
572 doAssert((sortkNew != sortk3), "The sort keys should be different"); in TestCollationKey()
573 …doAssert(sortk1.compareTo(sortk3) == Collator::GREATER, "Result should be \"Abcda\" >>> \"abcda\""… in TestCollationKey()
574 … doAssert(sortk2.compareTo(sortk3) == Collator::EQUAL, "Result should be \"abcda\" == \"abcda\""); in TestCollationKey()
578 …doAssert(sortk1.compareTo(sortk3, success) == UCOL_GREATER, "Result should be \"Abcda\" >>> \"abcd… in TestCollationKey()
579 …doAssert(sortk2.compareTo(sortk3, success) == UCOL_EQUAL, "Result should be \"abcda\" == \"abcda\"… in TestCollationKey()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c1072 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local
1139 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1140 memset(sortk3,0xFE, sortklen); in TestSortKey()
1141 ucol_getSortKey(col, test2, u_strlen(test2), sortk3, sortklen+1); in TestSortKey()
1147 doAssert( (memcmp(sortk2, sortk3, sortklen) == 0), "Result should be \"abcda\" == \"abcda\""); in TestSortKey()
1149 resultP = ucol_sortKeyToString(col, sortk3, toStringBuffer, toStringLen); in TestSortKey()
1164 sprintf(junk3+strlen(junk3), "%02X ",(int)( 0xFF & sortk3[i])); in TestSortKey()
1174 free(sortk3); in TestSortKey()
1217 uint8_t *sortk1, *sortk2, *sortk3; in TestHashCode() local
1243 sortk3=(uint8_t*)malloc(sizeof(uint8_t) * (sortk3len+1)); in TestHashCode()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java434 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
438 sortk3 = col3.getCollationKey(test2); in TestHashCode()
441 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java431 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
435 sortk3 = col3.getCollationKey(test2); in TestHashCode()
438 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()