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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_widestring_unittest.cpp b/core/fxcrt/cfx_widestring_unittest.cpp
index c1728af1b1..a0523b1804 100644
--- a/core/fxcrt/cfx_widestring_unittest.cpp
+++ b/core/fxcrt/cfx_widestring_unittest.cpp
@@ -933,6 +933,11 @@ TEST(fxcrt, WideStringFormatPrecision) {
}
}
+TEST(fxcrt, WideStringFormatOutOfRangeChar) {
+ CFX_WideString str;
+ str.Format(L"unsupported char '%c'", 0x00FF00FF);
+}
+
TEST(fxcrt, EmptyWideString) {
CFX_WideString empty_str;
EXPECT_TRUE(empty_str.IsEmpty());