Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/cintltst/
Dcapitst.c1072 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local
1133 sortk2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1134 memset(sortk2,0xFE, sortklen); in TestSortKey()
1135 ucol_getSortKey(col, test2, u_strlen(test2), sortk2, 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()
1147 doAssert( (memcmp(sortk2, sortk3, sortklen) == 0), "Result should be \"abcda\" == \"abcda\""); in TestSortKey()
1163 sprintf(junk2+strlen(junk2), "%02X ",(int)( 0xFF & sortk2[i])); in TestSortKey()
1173 free(sortk2); in TestSortKey()
1182 sortk2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
[all …]
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp465 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
469 col3->getCollationKey(test2, sortk2, status); in TestHashCode()
472 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
473 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
495 CollationKey sortk1, sortk2; in TestCollationKey() local
543 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey()
547 CollationKey sortk3(sortk2), sortkNew; in TestCollationKey()
550 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey()
551 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
552 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/
DCollationAPITest.java82 CollationKey sortk2 = col.getCollationKey(test2); in TestCollationKey() local
83 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); 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()
429 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
432 sortk2 = col3.getCollationKey(test2); in TestHashCode()
435 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
436 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.java81 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()
428 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
431 sortk2 = col3.getCollationKey(test2); in TestHashCode()
434 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
435 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()