Lines Matching refs:aTests
816 } aTests[] =
827 for (size_t i = 0; i < RT_ELEMENTS(aTests); i++)
829 size_t cErrors = RTStrPurgeEncoding((char *)aTests[i].szIn);
830 if (cErrors != aTests[i].cErrors)
831 RTTestFailed(hTest, "#%u: cErrors=%u expected %u\n", i, cErrors, aTests[i].cErrors);
832 else if (strcmp((char *)aTests[i].szIn, aTests[i].pszExpect))
833 RTTestFailed(hTest, "#%u: %.5Rhxs expected %.5Rhxs (%s)\n", i, aTests[i].szIn, aTests[i].pszExpect, aTests[i].pszExpect);
858 aTests[] =
870 for (unsigned i = 0; i < RT_ELEMENTS(aTests); ++i)
874 AssertRC(RTStrCopy(szCopy, RT_ELEMENTS(szCopy), aTests[i].pcszIn));
875 cReplacements = RTStrPurgeComplementSet(szCopy, aTests[i].pcCpSet,
876 aTests[i].chReplacement);
877 if (cReplacements != aTests[i].cExpected)
879 (long long) aTests[i].cExpected,
881 if (strcmp(aTests[i].pcszOut, szCopy))
883 aTests[i].pcszOut, szCopy);
907 aTests[] =
920 for (unsigned i = 0; i < RT_ELEMENTS(aTests); ++i)
925 if (!aTests[i].cwc)
927 AssertRC(RTStrToUtf16Ex(aTests[i].pcszIn, RTSTR_MAX, &pwszInCopy,
929 AssertRC(RTStrToUtf16Ex(aTests[i].pcszOut, RTSTR_MAX, &pwszOutCopy,
934 Assert(aTests[i].cwc <= RT_ELEMENTS(wszInCopy));
935 memcpy(wszInCopy, aTests[i].pcszIn, aTests[i].cwc * 2);
936 memcpy(wszOutCopy, aTests[i].pcszOut, aTests[i].cwc * 2);
938 cReplacements = RTUtf16PurgeComplementSet(wszInCopy, aTests[i].pcCpSet,
939 aTests[i].chReplacement);
940 if (cReplacements != aTests[i].cExpected)
942 (long long) aTests[i].cExpected,