X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..HEAD:/icuSources/test/intltest/itmajor.cpp diff --git a/icuSources/test/intltest/itmajor.cpp b/icuSources/test/intltest/itmajor.cpp index 97b89ea4..84bee28d 100644 --- a/icuSources/test/intltest/itmajor.cpp +++ b/icuSources/test/intltest/itmajor.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** * COPYRIGHT: - * Copyright (c) 1998-2006, International Business Machines Corporation and + * Copyright (c) 1998-2016, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -15,6 +17,7 @@ ***********************************************************************/ #include "unicode/utypes.h" +#include "unicode/localpointer.h" #include "itmajor.h" #include "itutil.h" @@ -25,6 +28,7 @@ #include "itrbnf.h" #include "itrbnfp.h" #include "itrbnfrt.h" +#include "itspoof.h" #include "normconf.h" #include "regextst.h" #include "tstnorm.h" @@ -34,6 +38,8 @@ #include "convtest.h" #include "csdetest.h" +extern IntlTest *createBiDiConformanceTest(); + #define CASE_SUITE(id, suite) case id: \ name = #suite; \ if(exec) { \ @@ -105,7 +111,7 @@ void MajorTestLevel::runIndexedTest( int32_t index, UBool exec, const char* &nam break; case 6: name = "rbbi"; -#if !UCONFIG_NO_BREAK_ITERATION +#if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_REGULAR_EXPRESSIONS if (exec) { logln("TestSuite RuleBasedBreakIterator---"); logln(); IntlTestRBBI test; @@ -179,6 +185,28 @@ void MajorTestLevel::runIndexedTest( int32_t index, UBool exec, const char* &nam break; + case 14: +#if !UCONFIG_NO_REGULAR_EXPRESSIONS && !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_FILE_IO + name = "spoof"; + if (exec) { + logln("TestSuite SpoofDetection---"); logln(); + IntlTestSpoof test; + callTest(test, par); + } +#else + name = "skip"; +#endif + break; + + case 15: name = "bidi"; + if (exec) { + logln("TestSuite bidi---"); logln(); + LocalPointer test(createBiDiConformanceTest()); + callTest(*test, par); + } + + break; + default: name = ""; break; }