Browse Source

Replace raw string in IncompleteJsonExceptionTest

Patrick-Christopher Mattulat 1 year ago
parent
commit
63a1a73f47
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/cases/core/exception/IncompleteJsonExceptionTest.cpp

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

@@ -53,12 +53,12 @@ namespace
         {
         {
           try
           try
           {
           {
-            throw IncompleteJsonException{R"(incomplete: {"name":"})"};
+            throw IncompleteJsonException{"incomplete: {\"name\":\"}"};
           }
           }
           catch (const IncompleteJsonException &_exception)
           catch (const IncompleteJsonException &_exception)
           {
           {
             ::std::string message = _exception.what();
             ::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;
             throw;
           }
           }
         },
         },