diff options
Diffstat (limited to 'Build/source/libs/icu/icu-49.1/test/intltest/itrbbi.cpp')
-rw-r--r-- | Build/source/libs/icu/icu-49.1/test/intltest/itrbbi.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-49.1/test/intltest/itrbbi.cpp b/Build/source/libs/icu/icu-49.1/test/intltest/itrbbi.cpp new file mode 100644 index 00000000000..b99a405beae --- /dev/null +++ b/Build/source/libs/icu/icu-49.1/test/intltest/itrbbi.cpp @@ -0,0 +1,45 @@ +/* +********************************************************************** +* Copyright (C) 1998-2012, International Business Machines Corporation +* and others. All Rights Reserved. +********************************************************************** +*/ +/*********************************************************************** +* Date Name Description +* 12/14/99 Madhu Creation. +***********************************************************************/ +/** + * IntlTestRBBI is the medium level test class for RuleBasedBreakIterator + */ + +#include "unicode/utypes.h" + +#if !UCONFIG_NO_BREAK_ITERATION + +#include "itrbbi.h" +#include "rbbiapts.h" +#include "rbbitst.h" + +#define TESTCLASS(n,classname) \ + case n: \ + name = #classname; \ + if (exec) { \ + logln(#classname "---"); \ + logln(""); \ + classname t; \ + callTest(t, par); \ + } \ + break + + +void IntlTestRBBI::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) +{ + if (exec) logln("TestSuite RuleBasedBreakIterator: "); + switch (index) { + TESTCLASS(0, RBBIAPITest); + TESTCLASS(1, RBBITest); + default: name=""; break; + } +} + +#endif /* #if !UCONFIG_NO_BREAK_ITERATION */ |