summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_bytestring_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_bytestring_unittest.cpp')
-rw-r--r--core/fxcrt/cfx_bytestring_unittest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_bytestring_unittest.cpp b/core/fxcrt/cfx_bytestring_unittest.cpp
index 4f2691c404..3b679a086c 100644
--- a/core/fxcrt/cfx_bytestring_unittest.cpp
+++ b/core/fxcrt/cfx_bytestring_unittest.cpp
@@ -1089,3 +1089,10 @@ TEST(fxcrt, EmptyByteString) {
const char* cstr = empty_str.c_str();
EXPECT_EQ(0, FXSYS_strlen(cstr));
}
+
+TEST(fxcrt, ByteStringInitializerList) {
+ CFX_ByteString many_str({"clams", " and ", "oysters"});
+ EXPECT_EQ("clams and oysters", many_str);
+ many_str = {"fish", " and ", "chips", " and ", "soda"};
+ EXPECT_EQ("fish and chips and soda", many_str);
+}