Lines Matching refs:testName
97 testTrieEnum(const char *testName, in testTrieEnum() argument
110 testTrieGetters(const char *testName, in testTrieGetters() argument
139 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
150 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
160 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
166 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
187 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
200 typeName, testName, (long)start, (long)value2, (long)errorValue); in testTrieGetters()
206 if(0!=strncmp(testName, "dummy", 5) && 0!=strncmp(testName, "trie1", 5)) { in testTrieGetters()
235 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
241 typeName, testName, (long)start, (long)value2, (long)value); in testTrieGetters()
257 typeName, testName); in testTrieGetters()
264 typeName, testName); in testTrieGetters()
269 testTrieUTF16(const char *testName, in testTrieUTF16() argument
314 testName, (long)c, (long)value, (long)values[i]); in testTrieUTF16()
318 testName, (long)c, (long)c2); in testTrieUTF16()
339 testName, (long)c, (long)value, (long)values[i]); in testTrieUTF16()
343 testName, c, c2); in testTrieUTF16()
349 testTrieUTF8(const char *testName, in testTrieUTF8() argument
443 testName, (unsigned long)bytes, (long)c, (long)value, (long)values[i]); in testTrieUTF8()
447 testName, (unsigned long)bytes, (long)c, (long)(p-s), (long)i8); in testTrieUTF8()
474 testName, (unsigned long)bytes, (long)c, (long)value, (long)values[i]); in testTrieUTF8()
478 testName, (unsigned long)bytes, (long)c, (long)(p-s), (long)i8); in testTrieUTF8()
485 testFrozenTrie(const char *testName, in testFrozenTrie() argument
493 testName); in testFrozenTrie()
497 testTrieGetters(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
498 testTrieEnum(testName, trie, checkRanges, countCheckRanges); in testFrozenTrie()
499 testTrieUTF16(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
500 testTrieUTF8(testName, trie, valueBits, checkRanges, countCheckRanges); in testFrozenTrie()
508 testName, u_errorName(errorCode)); in testFrozenTrie()
517 testName, u_errorName(errorCode)); in testFrozenTrie()
528 testName, u_errorName(errorCode)); in testFrozenTrie()
534 testNewTrie(const char *testName, const UTrie2 *trie, in testNewTrie() argument
537 testTrieGetters(testName, trie, UTRIE2_COUNT_VALUE_BITS, checkRanges, countCheckRanges); in testNewTrie()
538 testTrieEnum(testName, trie, checkRanges, countCheckRanges); in testNewTrie()
542 testTrieSerialize(const char *testName, in testTrieSerialize() argument
556 testName, u_errorName(errorCode)); in testTrieSerialize()
569 testName, u_errorName(errorCode)); in testTrieSerialize()
576 testName, u_errorName(errorCode), utrie2_isFrozen(trie)); in testTrieSerialize()
584 testName, u_errorName(errorCode)); in testTrieSerialize()
593 testName, u_errorName(errorCode)); in testTrieSerialize()
603 testName, u_errorName(errorCode)); in testTrieSerialize()
609 log_err("error: utrie2_serialize(%s) needs more memory\n", testName); in testTrieSerialize()
613 log_err("error: utrie2_serialize(%s) failed: %s\n", testName, u_errorName(errorCode)); in testTrieSerialize()
618 "preflight vs. serialize\n", testName); in testTrieSerialize()
622 testFrozenTrie(testName, trie, valueBits, checkRanges, countCheckRanges); in testTrieSerialize()
640 testName, u_errorName(errorCode)); in testTrieSerialize()
648 testName, u_errorName(errorCode)); in testTrieSerialize()
660 testName, u_errorName(errorCode)); in testTrieSerialize()
668 testName, u_errorName(errorCode)); in testTrieSerialize()
675 … log_err("error: utrie2_openFromSerialized(%s) failed, %s\n", testName, u_errorName(errorCode)); in testTrieSerialize()
679 log_err("error: trie serialization (%s) did not preserve 32-bitness\n", testName); in testTrieSerialize()
684 "serialize vs. unserialize\n", testName); in testTrieSerialize()
693 testName, u_errorName(errorCode), utrie2_isFrozen(trie)); in testTrieSerialize()
700 testName, u_errorName(errorCode)); in testTrieSerialize()
709 testName, u_errorName(errorCode)); in testTrieSerialize()
718 testFrozenTrie(testName, trie, valueBits, checkRanges, countCheckRanges); in testTrieSerialize()
725 testName, u_errorName(errorCode), clone!=NULL && utrie2_isFrozen(trie)); in testTrieSerialize()
741 testName, u_errorName(errorCode)); in testTrieSerialize()
744 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerialize()
751 testTrieSerializeAllValueBits(const char *testName, in testTrieSerializeAllValueBits() argument
757 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerializeAllValueBits()
763 uprv_strcpy(name, testName); in testTrieSerializeAllValueBits()
778 testName, u_errorName(errorCode)); in testTrieSerializeAllValueBits()
783 testNewTrie(testName, trie, checkRanges, countCheckRanges); in testTrieSerializeAllValueBits()
787 uprv_strcpy(name, testName); in testTrieSerializeAllValueBits()
797 makeTrieWithRanges(const char *testName, UBool withClone, in makeTrieWithRanges() argument
808 log_verbose("\ntesting Trie '%s'\n", testName); in makeTrieWithRanges()
813 log_err("error: utrie2_open(%s) failed: %s\n", testName, u_errorName(errorCode)); in makeTrieWithRanges()
824 testName, u_errorName(errorCode)); in makeTrieWithRanges()
850 testName, u_errorName(errorCode)); in makeTrieWithRanges()
857 testTrieRanges(const char *testName, UBool withClone, in testTrieRanges() argument
860 UTrie2 *trie=makeTrieWithRanges(testName, withClone, in testTrieRanges()
864 trie=testTrieSerializeAllValueBits(testName, trie, withClone, in testTrieRanges()
1059 static const char *const testName="enum-for-lead"; in EnumNewTrieForLeadSurrogateTest() local
1060 UTrie2 *trie=makeTrieWithRanges(testName, FALSE, in EnumNewTrieForLeadSurrogateTest()
1086 log_err("error: utrie2_freeze(%s) failed\n", testName); in EnumNewTrieForLeadSurrogateTest()
1111 const char *testName; in dummyTest() local
1115 testName="dummy.16"; in dummyTest()
1119 testName="dummy.32"; in dummyTest()
1133 testFrozenTrie(testName, trie, valueBits, checkRanges, LENGTHOF(checkRanges)); in dummyTest()
1155 static const char *const testName="free-blocks"; in FreeBlocksTest() local
1164 log_err("error: utrie2_open(%s) failed: %s\n", testName, u_errorName(errorCode)); in FreeBlocksTest()
1188 testName, u_errorName(errorCode)); in FreeBlocksTest()
1193 trie=testTrieSerializeAllValueBits(testName, trie, FALSE, in FreeBlocksTest()
1208 static const char *const testName="grow-data"; in GrowDataArrayTest() local
1217 log_err("error: utrie2_open(%s) failed: %s\n", testName, u_errorName(errorCode)); in GrowDataArrayTest()
1246 testName, u_errorName(errorCode)); in GrowDataArrayTest()
1251 trie=testTrieSerializeAllValueBits(testName, trie, FALSE, in GrowDataArrayTest()
1284 makeNewTrie1WithRanges(const char *testName, in makeNewTrie1WithRanges() argument
1295 log_verbose("\ntesting Trie '%s'\n", testName); in makeNewTrie1WithRanges()
1302 log_err("error: utrie_open(%s) failed: %s\n", testName, u_errorName(errorCode)); in makeNewTrie1WithRanges()
1322 log_err("error: setting values into a trie1 (%s) failed\n", testName); in makeNewTrie1WithRanges()
1329 testTrie2FromTrie1(const char *testName, in testTrie2FromTrie1() argument
1344 newTrie1_16=makeNewTrie1WithRanges(testName, in testTrie2FromTrie1()
1366 testName, u_errorName(errorCode)); in testTrie2FromTrie1()
1372 uprv_strcpy(name, testName); in testTrie2FromTrie1()
1391 uprv_strcpy(name, testName); in testTrie2FromTrie1()