Lines Matching defs:testName

70 testAPI(const UChar* src, const UChar* expected, const char* testName,
103 log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
108 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));
122 log_err("Did not get the expected result for %s null terminated source with both options set.\n",testName);
126 log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
131 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));
146 log_err("Did not get the expected result for %s with source length.\n",testName);
149 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName);
154 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));
168 log_err("Did not get the expected result for %s with source length and both options set.\n",testName);
171 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName);
176 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));
189 log_err("Did not get the expected result for %s null terminated source with both options set.\n",testName);
193 log_err( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
198 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));
212 log_err("Did not get the expected result for %s with source length and both options set.\n",testName);
215 log_err( "%s with source length failed. Requires destCapacity > 300\n",testName);
220 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));
430 const char* testName = "uidna_toASCII";
434 testAPI(unicodeIn[i], buf,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
444 const char* testName = "uidna_toUnicode";
448 testAPI(buf,unicodeIn[i],testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
461 const char* testName="uidna_IDNToUnicode";
468 log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName, i, u_errorName(status));
471 testAPI(buf,expected,testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
473 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
475 log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
490 const char* testName="udina_IDNToASCII";
498 log_err_status(status, "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
501 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
503 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, FALSE, TRUE, func);
505 log_err( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
517 const char* testName, CompareFunc func,
524 log_err("Did not get the expected result for %s with null termniated strings.\n",testName);
527 log_err_status(status, "%s null terminated source failed. Error: %s\n", testName,u_errorName(status));
534 log_err("Did not get the expected result for %s with null termniated strings with options set.\n", testName);
537 log_err_status(status, "%s null terminated source and options set failed. Error: %s\n",testName, u_errorName(status));
544 log_err("Did not get the expected result for %s with string length.\n",testName);
547 log_err_status(status, "%s with string length. Error: %s\n",testName, u_errorName(status));
554 log_err("Did not get the expected result for %s with string length and options set.\n",testName);
557 log_err_status(status, "%s with string length and options set. Error: %s\n", u_errorName(status), testName);
566 const char* testName ="uidna_compare";
619 testCompareWithSrc(src,srcLen,src,srcLen,testName, func, TRUE);
622 testCompareWithSrc(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
626 testCompareWithSrc(src,srcLen,uni1,u_strlen(uni1),testName, func,FALSE);
628 testCompareWithSrc(src,srcLen,uni0,u_strlen(uni0),testName, func,FALSE);
632 testCompareWithSrc(src,srcLen,ascii1,u_strlen(ascii1),testName, func,FALSE);
634 testCompareWithSrc(src,srcLen,ascii0,u_strlen(ascii0),testName, func,FALSE);