]> granicus.if.org Git - icu/commitdiff
add unitsroutertest.cpp
authorYounies Mahmoud <younies.mahmoud@gmail.com>
Thu, 19 Mar 2020 02:21:44 +0000 (03:21 +0100)
committerYounies Mahmoud <younies.mahmoud@gmail.com>
Thu, 19 Mar 2020 02:21:44 +0000 (03:21 +0100)
icu4c/source/test/intltest/unitsroutertest.cpp [new file with mode: 0644]

diff --git a/icu4c/source/test/intltest/unitsroutertest.cpp b/icu4c/source/test/intltest/unitsroutertest.cpp
new file mode 100644 (file)
index 0000000..8e897dc
--- /dev/null
@@ -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 */