Lines Matching refs:testName
73 testAPI(const UChar* src, const UChar* expected, const char* testName, in testAPI() argument
106 log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName); in testAPI()
111 …ted error for %s null terminated source failed. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
125 …"Did not get the expected result for %s null terminated source with both options set.\n",testName); in testAPI()
129 … log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName); in testAPI()
134 …for %s null terminated source with options set. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
149 log_err("Did not get the expected result for %s with source length.\n",testName); in testAPI()
152 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName); in testAPI()
157 …t the expected error for %s with source length. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
171 …_err("Did not get the expected result for %s with source length and both options set.\n",testName); in testAPI()
174 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName); in testAPI()
179 …rror for %s with source length and options set. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
192 …"Did not get the expected result for %s null terminated source with both options set.\n",testName); in testAPI()
196 log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName); in testAPI()
201 …for %s null terminated source with options set. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
215 …_err("Did not get the expected result for %s with source length and both options set.\n",testName); in testAPI()
218 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName); in testAPI()
223 …rror for %s with source length and options set. Expected: %s Got: %s\n",testName, u_errorName(expe… in testAPI()
433 const char* testName = "uidna_toASCII"; in TestToASCII() local
437 testAPI(unicodeIn[i], buf,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func); in TestToASCII()
447 const char* testName = "uidna_toUnicode"; in TestToUnicode() local
451 testAPI(buf,unicodeIn[i],testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func); in TestToUnicode()
464 const char* testName="uidna_IDNToUnicode"; in TestIDNToUnicode() local
471 …log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName, i, u_errorNa… in TestIDNToUnicode()
474 testAPI(buf,expected,testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func); in TestIDNToUnicode()
476 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func); in TestIDNToUnicode()
478 … log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status)); in TestIDNToUnicode()
493 const char* testName="udina_IDNToASCII"; in TestIDNToASCII() local
501 …log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorNam… in TestIDNToASCII()
504 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func); in TestIDNToASCII()
506 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, FALSE, TRUE, func); in TestIDNToASCII()
508 … log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status)); in TestIDNToASCII()
520 const char* testName, CompareFunc func, in testCompareWithSrc() argument
527 log_err("Did not get the expected result for %s with null termniated strings.\n",testName); in testCompareWithSrc()
530 …log_err_status(status, "%s null terminated source failed. Error: %s\n", testName,u_errorName(statu… in testCompareWithSrc()
537 …id not get the expected result for %s with null termniated strings with options set.\n", testName); in testCompareWithSrc()
540 …status, "%s null terminated source and options set failed. Error: %s\n",testName, u_errorName(stat… in testCompareWithSrc()
547 log_err("Did not get the expected result for %s with string length.\n",testName); in testCompareWithSrc()
550 log_err_status(status, "%s with string length. Error: %s\n",testName, u_errorName(status)); in testCompareWithSrc()
557 … log_err("Did not get the expected result for %s with string length and options set.\n",testName); in testCompareWithSrc()
560 …atus(status, "%s with string length and options set. Error: %s\n", u_errorName(status), testName); in testCompareWithSrc()
569 const char* testName ="uidna_compare"; in TestCompare() local
622 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE); in TestCompare()
625 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE); in TestCompare()
629 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE); in TestCompare()
631 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE); in TestCompare()
635 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE); in TestCompare()
637 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE); in TestCompare()