Home
last modified time | relevance | path

Searched refs:sortk1 (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp463 CollationKey sortk1, sortk2, sortk3; in TestHashCode() local
466 col3->getCollationKey(test1, sortk1, status); in TestHashCode()
470 doAssert(sortk1.hashCode() != sortk2.hashCode(), "Hash test1 result incorrect"); in TestHashCode()
493 CollationKey sortk1, sortk2; in TestCollationKey() local
529 col->getCollationKey(NULL, 0, sortk1, key1Status); in TestCollationKey()
530 doAssert(sortk1.isBogus() && (sortk1.getByteArray(length), length) == 0, in TestCollationKey()
536 col->getCollationKey(test1, sortk1, key1Status); in TestCollationKey()
541 doAssert((sortk1.compareTo(col->getCollationKey(test2, sortk2, key2Status))) in TestCollationKey()
547 sortkNew = sortk1; in TestCollationKey()
548 doAssert((sortk1 != sortk2), "The sort keys should be different"); in TestCollationKey()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java64 CollationKey sortk1 = col.getCollationKey(""); in TestCollationKey() local
66 byte[] bytes = sortk1.toByteArray(); in TestCollationKey()
76 doAssert(sortkIgnorable.compareTo(sortk1) == 0, in TestCollationKey()
80 sortk1 = col.getCollationKey(null); in TestCollationKey()
81 doAssert(sortk1 == null, "Error code should return bogus collation key"); in TestCollationKey()
84 sortk1 = col.getCollationKey(test1); in TestCollationKey()
86 doAssert((sortk1.compareTo(sortk2)) > 0, "Result should be \"Abcda\" >>> \"abcda\""); in TestCollationKey()
89 sortkNew = sortk1; 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()
[all …]
DCollationRegressionTest.java1156 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local
1157 byte[] bytes = sortk1.toByteArray(); in printKey()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationAPITest.java60 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 …]
DCollationRegressionTest.java1152 CollationKey sortk1 = col.getCollationKey(str1); in printKey() local
1153 byte[] bytes = sortk1.toByteArray(); in printKey()
/external/icu/icu4c/source/test/cintltst/
Dcapitst.c1070 uint8_t *sortk1 = NULL, *sortk2 = NULL, *sortk3 = NULL, *sortkEmpty = NULL; in TestSortKey() local
1126 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1127 memset(sortk1,0xFE, sortklen); in TestSortKey()
1128 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, 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()
1170 free(sortk1); in TestSortKey()
1177 sortk1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in TestSortKey()
1178 ucol_getSortKey(col, test1, u_strlen(test1), sortk1, sortklen+1); in TestSortKey()
1183 doAssert( !(memcmp(sortk1, sortk2, sortklen) > 0), "Result should be \"Abcda\" == \"abcda\""); in TestSortKey()
[all …]