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