Skip to content

Commit

Permalink
[test] ICU.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfusik committed Feb 22, 2024
1 parent a92f7e5 commit 9107a5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ else
ifeq ($(shell uname),Linux)
TEST_CFLAGS += -fsanitize=address -g
TEST_CXXFLAGS += -fsanitize=address -g
else ifeq ($(shell uname),Darwin)
TEST_ICUFLAGS = -I /opt/homebrew/opt/icu4c/include -L /opt/homebrew/opt/icu4c/lib
endif
TEST_CXXFLAGS += $(if $(findstring $*, StringToLower StringToLowerUpperMaxMin StringToUpper), -licuuc)
TEST_CXXFLAGS += $(if $(findstring $*, StringToLower StringToLowerUpperMaxMin StringToUpper), $(TEST_ICUFLAGS) -licuuc)
JAVACPSEP = :
SWIFTC += -sanitize=address
endif
Expand Down
2 changes: 1 addition & 1 deletion test/StringToLower.fu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Test
{
string() orig1 = "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"; //FAIL: cl
string orig2 = "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш";
string() new1 = orig1.ToLower(); //FAIL: cpp requires ICU
string() new1 = orig1.ToLower();
string() new2 = orig2.ToLower();
return orig1 == "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"
&& orig2 == "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"
Expand Down
2 changes: 1 addition & 1 deletion test/StringToUpper.fu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Test
{
string() orig1 = "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"; //FAIL: cl
string orig2 = "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш";
string() new1 = orig1.ToUpper(); //FAIL: cpp requires ICU
string() new1 = orig1.ToUpper();
string() new2 = orig2.ToUpper();
return orig1 == "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"
&& orig2 == "MiXeD cAsE ĐÂĂÊÔơưấắếỐỚỨẦẰềồờừậẶỆỘỢỰш"
Expand Down

0 comments on commit 9107a5c

Please sign in to comment.