diff --git a/tests/test_string.cpp b/tests/test_string.cpp index 0ade0113..1bd29ff5 100644 --- a/tests/test_string.cpp +++ b/tests/test_string.cpp @@ -350,6 +350,9 @@ public: CPPUNIT_ASSERT(String(ByteVector("\xFC\x80\x80\x80\x80\x80"), String::UTF8).isEmpty()); CPPUNIT_ASSERT(String('\x80', String::UTF8).isEmpty()); + + CPPUNIT_ASSERT(String(ByteVector("\xED\xA0\x80\xED\xB0\x80"), String::UTF8).isEmpty()); + CPPUNIT_ASSERT(String(ByteVector("\xED\xB0\x80\xED\xA0\x80"), String::UTF8).isEmpty()); } };