Lines Matching refs:checkResults

186         int32_t         checkResults;  in TestUSpoofCAPI()  local
209 checkResults = uspoof_check(sc2, goodLatin, -1, NULL, &status); in TestUSpoofCAPI()
211 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
213 checkResults = uspoof_check(sc2, scMixed, -1, NULL, &status); in TestUSpoofCAPI()
215 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT | USPOOF_MIXED_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
273 int32_t checkResults = 0; in TestUSpoofCAPI() local
286 checkResults = uspoof_check(clone2, goodLatin, -1, NULL, &status); in TestUSpoofCAPI()
288 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
290 checkResults = uspoof_check(clone2, scMixed, -1, NULL, &status); in TestUSpoofCAPI()
292 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT | USPOOF_MIXED_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
321 int32_t checkResults; in TestUSpoofCAPI() local
335 checkResults = uspoof_check(sc, scMixed, -1, NULL, &status); in TestUSpoofCAPI()
337 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
346 int32_t checkResults; in TestUSpoofCAPI() local
366 checkResults = uspoof_check(sc, goodLatin, -1, NULL, &status); in TestUSpoofCAPI()
368 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
370 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status); in TestUSpoofCAPI()
372 TEST_ASSERT_EQ(USPOOF_CHAR_LIMIT, checkResults); in TestUSpoofCAPI()
374 checkResults = uspoof_check(sc, goodCyrl, -1, NULL, &status); in TestUSpoofCAPI()
376 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
382 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status); in TestUSpoofCAPI()
384 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
393 int32_t checkResults; in TestUSpoofCAPI() local
415 checkResults = uspoof_check(sc, goodLatin, -1, NULL, &status); in TestUSpoofCAPI()
417 TEST_ASSERT_EQ(USPOOF_CHAR_LIMIT | USPOOF_RESTRICTION_LEVEL, checkResults); in TestUSpoofCAPI()
419 checkResults = uspoof_check(sc, goodGreek, -1, NULL, &status); in TestUSpoofCAPI()
421 TEST_ASSERT_EQ(USPOOF_WHOLE_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
429 int32_t checkResults; in TestUSpoofCAPI() local
435 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status); in TestUSpoofCAPI()
437 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
442 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status); in TestUSpoofCAPI()
444 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
449 checkResults = uspoof_checkUTF8(sc, utf8buf, -1, &position, &status); in TestUSpoofCAPI()
451 TEST_ASSERT_EQ(USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_SINGLE_SCRIPT , checkResults); in TestUSpoofCAPI()
460 int32_t checkResults; in TestUSpoofCAPI() local
462 checkResults = uspoof_areConfusable(sc, scLatin, -1, scMixed, -1, &status); in TestUSpoofCAPI()
464 TEST_ASSERT_EQ(USPOOF_MIXED_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
466 checkResults = uspoof_areConfusable(sc, goodGreek, -1, scLatin, -1, &status); in TestUSpoofCAPI()
468 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
470 checkResults = uspoof_areConfusable(sc, lll_Latin_a, -1, lll_Latin_b, -1, &status); in TestUSpoofCAPI()
472 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
480 int32_t checkResults; in TestUSpoofCAPI() local
488 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status); in TestUSpoofCAPI()
490 TEST_ASSERT_EQ(USPOOF_MIXED_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()
495 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status); in TestUSpoofCAPI()
497 TEST_ASSERT_EQ(0, checkResults); in TestUSpoofCAPI()
502 checkResults = uspoof_areConfusableUTF8(sc, s1, -1, s2, -1, &status); in TestUSpoofCAPI()
504 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT_CONFUSABLE, checkResults); in TestUSpoofCAPI()