diff --git a/src/Helpers_TEST.cc b/src/Helpers_TEST.cc index 49b902b8..bfa6c077 100644 --- a/src/Helpers_TEST.cc +++ b/src/Helpers_TEST.cc @@ -53,14 +53,6 @@ TEST(HelpersTEST, UriToPathNoAuthority) ///////////////////////////////////////////////// TEST(HelpersTEST, UriToPathHasAuthority) { -#ifdef WIN32 - const std::string testStr1 = R"(localhost:8000\some\path)"; - const std::string testStr2 = R"(localhost:8000\some\path\)"; -#else - const std::string testStr1 = R"(localhost:8000/some/path)"; - const std::string testStr2 = R"(localhost:8000/some/path/)"; -#endif - { common::URI uri{"http://localhost:8000", true}; EXPECT_EQ("localhost:8000", uriToPath(uri)); @@ -68,12 +60,14 @@ TEST(HelpersTEST, UriToPathHasAuthority) { common::URI uri{"http://localhost:8000/some/path", true}; - EXPECT_EQ(testStr1, uriToPath(uri)); + EXPECT_EQ(common::joinPaths("localhost:8000", "some", "path"), + uriToPath(uri)); } { common::URI uri{"http://localhost:8000/some/path/", true}; - EXPECT_EQ(testStr2, uriToPath(uri)); + EXPECT_EQ(common::separator(common::joinPaths("localhost:8000", "some", + "path")), uriToPath(uri)); } }