VirtualBox

Ignore:
Timestamp:
Jul 21, 2009 12:06:38 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50317
Message:

IPRT: Some latin-1 cleanup and some preditions in the recoding loops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstUtf8.cpp

    r21728 r21740  
    806806    } s_Buf;
    807807
     808    RTTestSub(hTest, "Benchmarks");
     809/** @todo add RTTest* methods for reporting benchmark results. */
    808810    RTTestPrintf(hTest, RTTESTLVL_ALWAYS, "Benchmarking RTStrToUtf16Ex:  "); /** @todo figure this stuff into the test framework. */
    809811    PRTUTF16 pwsz = &s_Buf.wszBuf[0];
     
    846848    }
    847849
     850    RTTestSubDone(hTest);
    848851}
    849852
     
    10671070    rc = RTUtf16ToLatin1Ex(g_wszAll, 128, &psz2, 128, &cchActual);
    10681071    RTTEST_CHECK_RC(hTest, rc, VERR_BUFFER_OVERFLOW);
    1069     /** @todo Either fix the documentation or fix the code - cchActual is
    1070      * set to the number of bytes actually encoded. */
    1071     RTTEST_CHECK_MSG(hTest, (cchActual == 128),
     1072    RTTEST_CHECK_MSG(hTest, cchActual == 128,
    10721073                     (hTest, "cchActual=%lu\n", cchActual));
    10731074    rc = RTUtf16ToLatin1Ex(g_wszAll, 255, &psz, 0, &cchActual);
     
    11831184        RTTESTI_CHECK_RC(rc, VERR_NO_TRANSLATION);
    11841185
     1186    RTTestSub(hTest, "VERR_NO_TRANSLATION/RTUtf16ToLatin1");
     1187    rc = RTUtf16ToLatin1(s_swzTest1, &pszOut);
     1188    RTTESTI_CHECK_RC(rc, VERR_NO_TRANSLATION);
     1189    if (RT_SUCCESS(rc))
     1190        RTStrFree(pszOut);
     1191
    11851192    RTStrFree(pszTest1);
    11861193    RTTestSubDone(hTest);
     
    12081215    TstRTStrXCmp(hTest);
    12091216    testStrStr(hTest);
    1210 
    12111217    testMinistring(hTest);
    1212 
    12131218    testLatin1(hTest);
    1214 
    12151219    testNoTransation(hTest);
    12161220
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette