浏览代码

Replace raw string in IncompleteJsonExceptionTest

Patrick-Christopher Mattulat 1 年之前
父节点
当前提交
63a1a73f47
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/cases/core/exception/IncompleteJsonExceptionTest.cpp

+ 2 - 2
test/cases/core/exception/IncompleteJsonExceptionTest.cpp

@@ -53,12 +53,12 @@ namespace
         {
           try
           {
-            throw IncompleteJsonException{R"(incomplete: {"name":"})"};
+            throw IncompleteJsonException{"incomplete: {\"name\":\"}"};
           }
           catch (const IncompleteJsonException &_exception)
           {
             ::std::string message = _exception.what();
-            EXPECT_STREQ(R"(IncompleteJsonException thrown - incomplete: {"name":"})", message.c_str());
+            EXPECT_STREQ("IncompleteJsonException thrown - incomplete: {\"name\":\"}", message.c_str());
             throw;
           }
         },