summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_widestring_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_widestring_unittest.cpp')
-rw-r--r--core/fxcrt/cfx_widestring_unittest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_widestring_unittest.cpp b/core/fxcrt/cfx_widestring_unittest.cpp
index a0523b1804..dd44cb70af 100644
--- a/core/fxcrt/cfx_widestring_unittest.cpp
+++ b/core/fxcrt/cfx_widestring_unittest.cpp
@@ -945,3 +945,10 @@ TEST(fxcrt, EmptyWideString) {
const wchar_t* cstr = empty_str.c_str();
EXPECT_EQ(0, FXSYS_wcslen(cstr));
}
+
+TEST(fxcrt, WidStringInitializerList) {
+ CFX_WideString many_str({L"clams", L" and ", L"oysters"});
+ EXPECT_EQ(L"clams and oysters", many_str);
+ many_str = {L"fish", L" and ", L"chips", L" and ", L"soda"};
+ EXPECT_EQ(L"fish and chips and soda", many_str);
+}