Lines Matching refs:testName
450 void TestIDNA::testAPI(const UChar* src, const UChar* expected, const char* testName,
479 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source. Expected : "
485 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
491 UnicodeString(testName)+
509 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
510 errln("Did not get the expected result for "+UnicodeString(testName) +
519 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
525 UnicodeString(testName)+
544 errln("Did not get the expected result for %s with source length.\n",testName);
547 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
553 UnicodeString(testName)+
571 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
574 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
580 UnicodeString(testName)+
598 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
599 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen)));
603 errln( "%s null terminated source failed. Requires destCapacity > 300\n",testName);
609 UnicodeString(testName)+
627 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
630 errln( "%s with source length failed. Requires destCapacity > 300\n",testName);
636 UnicodeString(testName)+
648 const char* testName, CompareFunc func,
655 errln("Did not get the expected result for %s with null termniated strings.\n",testName);
658 errcheckln(status, "%s null terminated source failed. Error: %s", testName,u_errorName(status));
665 errln("Did not get the expected result for %s with null termniated strings with options set.\n", testName);
668 errcheckln(status, "%s null terminated source and options set failed. Error: %s",testName, u_errorName(status));
675 errln("Did not get the expected result for %s with string length.\n",testName);
678 errcheckln(status, "%s with string length. Error: %s",testName, u_errorName(status));
685 errln("Did not get the expected result for %s with string length and options set.\n",testName);
688 errcheckln(status, "%s with string length and options set. Error: %s", u_errorName(status), testName);
692 void TestIDNA::testToASCII(const char* testName, TestFunc func){
699 testAPI(unicodeIn[i], buf,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
704 void TestIDNA::testToUnicode(const char* testName, TestFunc func){
711 testAPI(buf,unicodeIn[i],testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
716 void TestIDNA::testIDNToUnicode(const char* testName, TestFunc func){
728 errcheckln(status, "%s failed to convert domainNames[%i].Error: %s",testName, i, u_errorName(status));
731 testAPI(buf,expected,testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
733 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
735 errln( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
742 void TestIDNA::testIDNToASCII(const char* testName, TestFunc func){
754 errcheckln(status, "%s failed to convert domainNames[%i].Error: %s",testName,i, u_errorName(status));
757 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
759 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, FALSE, TRUE, func);
761 errln( "%s failed to convert domainNames[%i].Error: %s \n",testName,i, u_errorName(status));
768 void TestIDNA::testCompare(const char* testName, CompareFunc func){
809 testCompare(src,srcLen,src,srcLen,testName, func, TRUE);
812 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
816 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE);
818 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE);
822 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE);
824 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE);
993 void TestIDNA::testChaining(const UChar* src,int32_t numIterations,const char* testName,
1007 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1015 errcheckln(status, "%s null terminated source failed - %s",testName, u_errorName(status));
1021 errln("%s null terminated source failed\n",testName);
1030 errln("Chaining for %s null terminated source failed\n",testName);
1036 errln("Chaining for %s null terminated source failed\n",testName);
1044 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1052 errcheckln(status, "%s null terminated source with options set failed - %s",testName, u_errorName(status));
1058 errln("%s null terminated source with options set failed\n",testName);
1067 errln("Chaining for %s null terminated source with options set failed\n",testName);
1073 errln("Chaining for %s null terminated source with options set failed\n",testName);
1082 errcheckln(status, "%s null terminated source failed. Error: %s",testName, u_errorName(status));
1090 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1096 errcheckln(status, "%s source with source length failed - %s",testName, u_errorName(status));
1105 errln("Chaining for %s source with source length failed\n",testName);
1111 errln("Chaining for %s source with source length failed\n",testName);
1117 errcheckln(status, "%s null terminated source with options set failed. Error: %s",testName, u_errorName(status));
1125 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1131 errcheckln(status, "%s source with source length and options set failed - %s",testName, u_errorName(status));
1140 errln("Chaining for %s source with source length and options set failed\n",testName);
1146 errln("Chaining for %s source with source length and options set failed\n",testName);
1165 void TestIDNA::testRootLabelSeparator(const char* testName, CompareFunc func,
1209 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,TRUE);
1212 testCompare(src,srcLen,src,srcLen,testName, func,TRUE);
1222 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,FALSE);
1224 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,FALSE);
1228 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,FALSE);
1230 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,FALSE);