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.cpp482 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
486 col3->getCollationKey(test2, sortk2, status); in TestHashCode()
489 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
490 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()
512 CollationKey sortk1, sortk2; in TestCollationKey() local
560 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey()
564 CollationKey sortk3(sortk2), sortkNew; in TestCollationKey()
567 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey()
568 doAssert((sortk1.hashCode() != sortk2.hashCode()), "sort key hashCode() failed"); in TestCollationKey()
569 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.java87 CollationKey sortk2 = col.getCollationKey(test2); in TestCollationKey() local
88 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); 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()
434 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
437 sortk2 = col3.getCollationKey(test2); in TestHashCode()
440 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); 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.java84 CollationKey sortk2 = col.getCollationKey(test2); in TestCollationKey() local
85 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); 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()
431 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
434 sortk2 = col3.getCollationKey(test2); in TestHashCode()
437 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
438 doAssert(sortk2.hashCode() == sortk3.hashCode(), "Hash result not equal" ); in TestHashCode()