Home | History | Annotate | Download | only in intltest

Lines Matching refs:expected

240     UErrorCode expected;
441 errln("Failed. Expected: " + prettify(UnicodeString(transOut, transOutLength))
449 void TestIDNA::testAPI(const UChar* src, const UChar* expected, const char* testName,
457 int32_t expectedLen = (expected != NULL) ? u_strlen(expected) : 0;
476 // TODO : compare output with expected
477 if(U_SUCCESS(status) && expectedStatus != U_IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
478 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source. Expected : "
479 + prettify(UnicodeString(expected,expectedLen))
489 errcheckln(status, "Did not get the expected error for "+
491 " null terminated source. Expected: " +UnicodeString(u_errorName(expectedStatus))
506 // TODO : compare output with expected
507 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
508 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
509 errln("Did not get the expected result for "+UnicodeString(testName) +
511 " with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen))+
523 errln( "Did not get the expected error for "+
525 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
541 // TODO : compare output with expected
542 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
543 errln("Did not get the expected result for %s with source length.\n",testName);
551 errln( "Did not get the expected error for "+
553 " with source length. Expected: " +UnicodeString(u_errorName(expectedStatus))
568 // TODO : compare output with expected
569 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
570 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
578 errln( "Did not get the expected error for "+
580 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
595 // TODO : compare output with expected
596 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
597 //errln("Did not get the expected result for %s null terminated source with both options set.\n",testName);
598 errln("Did not get the expected result for "+UnicodeString(testName) +" null terminated source with both options set. Expected: "+ prettify(UnicodeString(expected,expectedLen)));
607 errln( "Did not get the expected error for "+
609 " null terminated source with options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
624 // TODO : compare output with expected
625 if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0,&status)!=0){
626 errln("Did not get the expected result for %s with source length and both options set.\n",testName);
634 errln( "Did not get the expected error for "+
636 " with source length and options set. Expected: " +UnicodeString(u_errorName(expectedStatus))
654 errln("Did not get the expected result for %s with null termniated strings.\n",testName);
664 errln("Did not get the expected result for %s with null termniated strings with options set.\n", testName);
674 errln("Did not get the expected result for %s with string length.\n",testName);
684 errln("Did not get the expected result for %s with string length and options set.\n",testName);
718 UChar expected[MAX_DEST_SIZE];
725 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
730 testAPI(buf,expected,testName,FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
732 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
744 UChar expected[MAX_DEST_SIZE];
751 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
756 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, TRUE, TRUE, func);
758 testAPI(buf,expected,testName, FALSE,U_ZERO_ERROR, FALSE, TRUE, func);
919 errorCase.expected, TRUE, TRUE, IDNToASCII);
923 errorCase.expected, FALSE,TRUE, IDNToASCII);
928 errorCase.expected, TRUE, TRUE, IDNToUnicode);
941 UChar expected[MAX_DEST_SIZE];
956 u_strFromUTF8(expected,MAX_DEST_SIZE,&expectedLen,utf8Chars2,utf8Chars2Len, &status);
965 testAPI(src,expected,
972 testAPI(src,expected,
996 UChar expected[MAX_DEST_SIZE];
1004 expectedLen = func(src,-1,expected,MAX_DEST_SIZE, options, &parseError, &status);
1008 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1009 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1026 if( u_strCaseCompare(even,evenLen, expected,expectedLen, 0, &status) !=0 ||
1027 u_strCaseCompare(odd,oddLen, expected,expectedLen, 0, &status) !=0 ){
1032 if( u_strncmp(even,expected,expectedLen) != 0 ||
1033 u_strncmp(odd,expected,expectedLen) !=0 ){
1041 expectedLen = func(src,-1,expected,MAX_DEST_SIZE,options|UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
1045 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1046 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1063 if( u_strCaseCompare(even,evenLen, expected,expectedLen, 0, &status) !=0 ||
1064 u_strCaseCompare(odd,oddLen, expected,expectedLen, 0, &status) !=0 ){
1069 if( u_strncmp(even,expected,expectedLen) != 0 ||
1070 u_strncmp(odd,expected,expectedLen) !=0 ){
1079 expectedLen = func(src,srcLen,expected,MAX_DEST_SIZE,options, &parseError, &status);
1083 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1084 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1101 if( u_strCaseCompare(even,evenLen, expected,expectedLen, 0, &status) !=0 ||
1102 u_strCaseCompare(odd,oddLen, expected,expectedLen, 0, &status) !=0 ){
1107 if( u_strncmp(even,expected,expectedLen) != 0 ||
1108 u_strncmp(odd,expected,expectedLen) !=0 ){
1114 expectedLen = func(src,srcLen,expected,MAX_DEST_SIZE,options|UIDNA_ALLOW_UNASSIGNED, &parseError, &status);
1118 memcpy(odd,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1119 memcpy(even,expected,(expectedLen+1) * U_SIZEOF_UCHAR);
1136 if( u_strCaseCompare(even,evenLen, expected,expectedLen, 0, &status) !=0 ||
1137 u_strCaseCompare(odd,oddLen, expected,expectedLen, 0, &status) !=0 ){
1142 if( u_strncmp(even,expected,expectedLen) != 0 ||
1143 u_strncmp(odd,expected,expectedLen) !=0 ){
1378 errln("Did not get the expected status while comparing " + UnicodeString(refIDNAName)
1380 + " Expected: " + UnicodeString(u_errorName(expStatus))
1391 errln("Did not get the expected output while comparing " + UnicodeString(refIDNAName)
1393 + " Expected: " + prettify(UnicodeString(exp, expLen))
1498 UnicodeString expected("\\u043f\\u043e\\u0447\\u0435\\u043c\\u0443\\u0436\\u0435\\u043e\\u043d\\u0438\\u043d\\u0435\\u0433\\u043e\\u0432\\u043e\\u0440\\u044f\\u0442\\u043f\\u043e\\u0440\\u0443\\u0441\\u0441\\u043a\\u0438\\u0000", -1, US_INV);
1499 expected = expected.unescape();