From: Younies Mahmoud Date: Thu, 19 Mar 2020 02:21:44 +0000 (+0100) Subject: add unitsroutertest.cpp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3468561d72d4bc722e7e598d246e7ba5768ae4ed;p=icu add unitsroutertest.cpp --- diff --git a/icu4c/source/test/intltest/unitsroutertest.cpp b/icu4c/source/test/intltest/unitsroutertest.cpp new file mode 100644 index 00000000000..8e897dc0d12 --- /dev/null +++ b/icu4c/source/test/intltest/unitsroutertest.cpp @@ -0,0 +1,31 @@ +// © 2020 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html#License + +#include "unicode/utypes.h" + +#if !UCONFIG_NO_FORMATTING + +#include "intltest.h" +#include "unicode/unistr.h" + +class UnitsRouterTest : public IntlTest { + public: + UnitsRouterTest() {} + + void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par = NULL); + + void testBasic(); +}; + +extern IntlTest *createUnitsRouterTest() { return new UnitsRouterTest(); } + +void UnitsRouterTest::runIndexedTest(int32_t index, UBool exec, const char *&name, char * /*par*/) { + if (exec) { logln("TestSuite UnitsRouterTest: "); } + TESTCASE_AUTO_BEGIN; + TESTCASE_AUTO(testBasic); + TESTCASE_AUTO_END; +} + +void UnitsRouterTest::testBasic() { IcuTestErrorCode status(*this, "UnitsRouter testBasic"); } + +#endif /* #if !UCONFIG_NO_FORMATTING */