Skip to content

Commit

Permalink
ICU-22435 Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Aug 1, 2023
1 parent f1bfbbc commit 4391c79
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion icu4c/source/common/unicode/ulocale.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
#ifndef ULOCALE_H
#define ULOCALE_H

#include "unicode/utypes.h"
#include "unicode/localpointer.h"
#include "unicode/uenum.h"
#include "unicode/utypes.h"

/**
* \file
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/cintltst/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ LIBS = $(LIBCTESTFW) $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS)
OBJECTS = callcoll.o calltest.o capitst.o cbiapts.o cbkittst.o \
ccaltst.o ucnvseltst.o cctest.o ccapitst.o ccolltst.o encoll.o cconvtst.o ccurrtst.o \
cdateintervalformattest.o cdattst.o cdetst.o cdtdptst.o cdtrgtst.o cestst.o cfintst.o \
cformtst.o cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o \
cformtst.o cfrtst.o cg7coll.o chashtst.o cintltst.o citertst.o cjaptst.o cloctst.o ulocaletst.o\
cmsccoll.o cmsgtst.o cpluralrulestest.o cposxtst.o cldrtest.o \
cnmdptst.o cnormtst.o cnumtst.o crelativedateformattest.o crestst.o creststn.o cturtst.o \
cucdapi.o cucdtst.o custrtst.o cstrcase.o cutiltst.o nucnvtst.o nccbtst.o bocu1tst.o \
Expand Down
1 change: 1 addition & 0 deletions icu4c/source/test/cintltst/cintltst.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<ClCompile Include="utmstest.c" />
<ClCompile Include="cldrtest.c" />
<ClCompile Include="cloctst.c" />
<ClCompile Include="ulocaletst.c" />
<ClCompile Include="cposxtst.c" />
<ClCompile Include="crelativedateformattest.c" />
<ClCompile Include="crestst.c" />
Expand Down
3 changes: 3 additions & 0 deletions icu4c/source/test/cintltst/cintltst.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@
<ClCompile Include="cloctst.c">
<Filter>locales &amp; resources</Filter>
</ClCompile>
<ClCompile Include="ulocaletst.c">
<Filter>locales &amp; resources</Filter>
</ClCompile>
<ClCompile Include="cposxtst.c">
<Filter>locales &amp; resources</Filter>
</ClCompile>
Expand Down
2 changes: 2 additions & 0 deletions icu4c/source/test/cintltst/cutiltst.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "cintltst.h"

void addLocaleTest(TestNode**);
void addULocaleTest(TestNode**);
void addCLDRTest(TestNode**);
void addUnicodeTest(TestNode**);
void addUStringTest(TestNode**);
Expand All @@ -41,6 +42,7 @@ void addUtility(TestNode** root)
addTrie2Test(root);
addUCPTrieTest(root);
addLocaleTest(root);
addULocaleTest(root);
addCLDRTest(root);
addUnicodeTest(root);
addUStringTest(root);
Expand Down
16 changes: 16 additions & 0 deletions icu4c/source/test/cintltst/ulocaletst.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// © 2023 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/ctest.h"

#define TESTCASE(name) addTest(root, &name, "tsutil/ulocaletst/" #name)

static void TestBasic() {
}
void addULocaleTest(TestNode** root);

void addULocaleTest(TestNode** root)
{
TESTCASE(TestBasic);
}

0 comments on commit 4391c79

Please sign in to comment.