X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/test/intltest/itrbbi.cpp diff --git a/icuSources/test/intltest/itrbbi.cpp b/icuSources/test/intltest/itrbbi.cpp index 75f01cff..819f4134 100644 --- a/icuSources/test/intltest/itrbbi.cpp +++ b/icuSources/test/intltest/itrbbi.cpp @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** -* Copyright (C) 1998-2001, International Business Machines Corporation +* Copyright (C) 1998-2016, International Business Machines Corporation * and others. All Rights Reserved. ********************************************************************** */ @@ -14,35 +16,27 @@ #include "unicode/utypes.h" -#if !UCONFIG_NO_BREAK_ITERATION +#if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_REGULAR_EXPRESSIONS +#include "intltest.h" #include "itrbbi.h" #include "rbbiapts.h" #include "rbbitst.h" +#include "rbbimonkeytest.h" + void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) { - if (exec) logln("TestSuite RuleBasedBreakIterator: "); - switch (index) { - case 0: - name = "RBBIAPITest"; - if (exec) { - logln("RBBIAPITest--"); logln(""); - RBBIAPITest test; - callTest( test, par ); - } - break; - - case 1: - name = "RBBITest"; - if (exec) { - logln("RBBITest---"); logln(""); - RBBITest test; - callTest( test, par ); - } - break; - default: name=""; break; + if (exec) { + logln("TestSuite RuleBasedBreakIterator: "); } + TESTCASE_AUTO_BEGIN; + TESTCASE_AUTO_CLASS(RBBIAPITest); + TESTCASE_AUTO_CLASS(RBBITest); +#if !UCONFIG_NO_FORMATTING + TESTCASE_AUTO_CLASS(RBBIMonkeyTest); +#endif + TESTCASE_AUTO_END; } -#endif /* #if !UCONFIG_NO_BREAK_ITERATION */ +#endif /* #if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_REGULAR_EXPRESSIONS */