Lines Matching defs:Test
35 errln("Test Failure at file %s, line %d: \"%s\" is false.", __FILE__, __LINE__, #expr);};}
38 dataerrln("Test Failure at file %s, line %d, %s: \"%s\" is false.", __FILE__, __LINE__, msg, #expr);};}
41 errln("Test Failure at file %s, line %d: \"%s\" (%d) != \"%s\" (%d)", \
45 errln("Test Failure at file %s, line %d: \"%s\" (%d) == \"%s\" (%d)", \
50 * macros to handle the boilerplate around setting up test case.
51 * Put arbitrary test code between SETUP and TEARDOWN.
144 // If this test starts failing, consult confusablesWholeScript.txt
178 // Test cases chosen for substitutions of various lengths, and
181 // TODO: for ICU 56 with Unicode 8, revisit this test.
245 // Run a single confusable skeleton transformation test case.
256 errln("File %s, Line %d, Test case from line %d, status is %s", __FILE__, __LINE__, lineNum,
261 errln("File %s, Line %d, Test case from line %d, Actual and Expected skeletons differ.",
369 errln("Skipping test spoof/testConfData. Unable to find path to source/data/unidata/.");
376 errln("Skipping test spoof/testConfData. File confusables.txt not accessible.");
487 struct Test {
512 Test &test = tests[testNum];
514 UnicodeString testString(test.fTestString); // Note: may do charset conversion.
522 URestrictionLevel restrictionLevel = test.fRestrictionLevel;
526 UnicodeSet numerics(UnicodeString(test.fNumerics).unescape(), status);
531 scripts.parseScripts(UnicodeString(test.fScripts), status);
536 TEST_ASSERT_MSG(UnicodeString(test.fAlternates) == alternatesStr, testNumStr);
539 commonAlternates.parseScripts(UnicodeString(test.fCommonAlternates), status);
543 // Test of getScriptCount()
574 ScriptTest &test = scriptTests[testNum];
577 UnicodeString testString = UnicodeString(test.fTestString).unescape();
582 TEST_ASSERT_MSG(test.fScriptCount == scriptCount, msgBuf);
595 TEST_ASSERT(s1.test(USCRIPT_ARABIC, status));
596 TEST_ASSERT(s1.test(USCRIPT_GREEK, status) == FALSE);
604 TEST_ASSERT(s1.test(USCRIPT_COMMON, status));
605 TEST_ASSERT(s1.test(USCRIPT_ETHIOPIC, status));
606 TEST_ASSERT(s1.test(USCRIPT_CODE_LIMIT, status));
608 TEST_ASSERT(!s1.test(USCRIPT_COMMON, status));
609 TEST_ASSERT(!s1.test(USCRIPT_ETHIOPIC, status));
610 TEST_ASSERT(!s1.test(USCRIPT_CODE_LIMIT, status));
667 struct Test {
691 const Test &test = tests[testNum];
692 UnicodeString testString = UnicodeString(test.fId).unescape();
693 URestrictionLevel expectedLevel = test.fExpectedRestrictionLevel;
738 struct Test {
752 Test &test = tests[testNum];
755 UnicodeString testString = UnicodeString(test.fTestString).unescape();
756 UnicodeSet expectedSet(UnicodeString(test.fExpectedSet).unescape(), status);