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