summaryrefslogtreecommitdiff
path: root/core/fxcrt/widestring_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/widestring_unittest.cpp')
-rw-r--r--core/fxcrt/widestring_unittest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/fxcrt/widestring_unittest.cpp b/core/fxcrt/widestring_unittest.cpp
index 37d4ecd581..9017fe0c54 100644
--- a/core/fxcrt/widestring_unittest.cpp
+++ b/core/fxcrt/widestring_unittest.cpp
@@ -395,6 +395,13 @@ TEST(WideString, OperatorNE) {
EXPECT_TRUE(c_string3 != wide_string);
}
+TEST(WideString, OperatorPlus) {
+ EXPECT_EQ(L"I like dogs", L"I like " + WideString(L"dogs"));
+ EXPECT_EQ(L"Dogs like me", WideString(L"Dogs") + L" like me");
+ EXPECT_EQ(L"Oh no, error number 42",
+ L"Oh no, error number " + WideString::Format(L"%d", 42));
+}
+
TEST(WideString, ConcatInPlace) {
WideString fred;
fred.Concat(L"FRED", 4);