]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/uobjtest.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / uobjtest.cpp
index b1d6738e1d3439dea074b80d4ded7660d82ab91d..d55ba7e5a137c18bfa25bdc7d89ace9dd5e87991 100644 (file)
@@ -215,7 +215,6 @@ UObject *UObjectTest::testClassNoClassID(UObject *obj, const char *className, co
 #include "rbt_data.h"
 #include "nultrans.h"
 #include "anytrans.h"
-#include "digitlst.h"
 #include "esctrn.h"
 #include "funcrepl.h"
 #include "servnotf.h"
@@ -273,9 +272,11 @@ UObject *UObjectTest::testClassNoClassID(UObject *obj, const char *className, co
 #include "unicode/idna.h"
 #include "unicode/locdspnm.h"
 #include "unicode/locid.h"
+#include "unicode/measunit.h"
 #include "unicode/msgfmt.h"
 #include "unicode/normlzr.h"
 #include "unicode/normalizer2.h"
+#include "unicode/nounit.h"
 #include "unicode/numfmt.h"
 #include "unicode/parsepos.h"
 #include "unicode/plurrule.h"
@@ -292,6 +293,7 @@ UObject *UObjectTest::testClassNoClassID(UObject *obj, const char *className, co
 #include "unicode/stsearch.h"
 #include "unicode/tblcoll.h"
 #include "unicode/timezone.h"
+#include "unicode/tmunit.h"
 #include "unicode/translit.h"
 #include "unicode/uchriter.h"
 #include "unicode/uloc.h"
@@ -370,9 +372,13 @@ void UObjectTest::testIDs()
     TESTCLASSID_DEFAULT(FieldPosition);
     TESTCLASSID_DEFAULT(Formattable);
 
-    static const UChar SMALL_STR[] = {0x51, 0x51, 0x51, 0}; // "QQQ"
+    TESTCLASSID_FACTORY(MeasureUnit, MeasureUnit::createMeter(status));
+    TESTCLASSID_FACTORY(NoUnit, NoUnit::percent().clone());
+    TESTCLASSID_FACTORY(TimeUnit, TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status));
+    static const UChar SMALL_STR[] = u"QQQ";
     TESTCLASSID_CTOR(CurrencyAmount, (1.0, SMALL_STR, status));
     TESTCLASSID_CTOR(CurrencyUnit, (SMALL_STR, status));
+
     TESTCLASSID_NONE_FACTORY(LocaleDisplayNames, LocaleDisplayNames::createInstance("de"));
     TESTCLASSID_FACTORY_HIDDEN(CurrencyFormat, MeasureFormat::createCurrencyFormat(Locale::getUS(), status));
     TESTCLASSID_FACTORY(GregorianCalendar, Calendar::createInstance(Locale("@calendar=gregorian"), status));