Browse Source

Revert "Fixed unit test error on Windows"

This reverts commit 531f6ab84d189deebc90fd0d123768428da868b8.
yhirose 6 years ago
parent
commit
5a13539e57
1 changed files with 9 additions and 1 deletions
  1. 9 1
      test/test.cc

+ 9 - 1
test/test.cc

@@ -792,7 +792,15 @@ TEST_F(ServerTest, GetMethodDir) {
   EXPECT_EQ(200, res->status);
   EXPECT_EQ(200, res->status);
   EXPECT_EQ("text/html", res->get_header_value("Content-Type"));
   EXPECT_EQ("text/html", res->get_header_value("Content-Type"));
 
 
-  auto body = "<html>\r\n<head>\r\n</head>\r\n<body>\r\n  <a href=\"/dir/test.html\">Test</a>\r\n  <a href=\"/hi\">hi</a>\r\n</body>\r\n</html>\r\n";
+  auto body = R"(<html>
+<head>
+</head>
+<body>
+  <a href="/dir/test.html">Test</a>
+  <a href="/hi">hi</a>
+</body>
+</html>
+)";
   EXPECT_EQ(body, res->body);
   EXPECT_EQ(body, res->body);
 }
 }