Skip to content

Commit

Permalink
Fix failing test on Windows by avoiding using escape sequence in stri…
Browse files Browse the repository at this point in the history
…ng literal
  • Loading branch information
catamorphism committed Mar 22, 2024
1 parent 7db1d8a commit 8dee586
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion icu4c/source/test/intltest/messageformat2test_fromjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,13 @@ void TestMessageFormat2::runSpecTests(IcuTestErrorCode& errorCode) {
.build();
TestUtils::runTestCase(*this, test, errorCode);

test = testBuilder.setPattern("hello {\u3000world\r}")
// TODO:
// For some reason, this test fails on Windows if
// `pattern` is replaced with "hello {\\u3000world\r}".
UnicodeString pattern("hello {");
pattern += ((UChar32) 0x3000);
pattern += "world\r}";
test = testBuilder.setPattern(pattern)
.setExpected("hello world")
.build();
TestUtils::runTestCase(*this, test, errorCode);
Expand Down

0 comments on commit 8dee586

Please sign in to comment.