Ticket #10766: ticket_10766_fixtest.patch
File ticket_10766_fixtest.patch, 1.1 KB (added by , 7 years ago) |
---|
-
path_test.cpp
a b namespace 932 932 933 933 p = q = "/foo/"; 934 934 PATH_TEST_EQ(p.relative_path().string(), "foo/"); 935 PATH_TEST_EQ(p.parent_path().string(), "/ foo");935 PATH_TEST_EQ(p.parent_path().string(), "/"); 936 936 PATH_TEST_EQ(q.remove_filename().string(), p.parent_path().string()); 937 937 PATH_TEST_EQ(p.filename(), "."); 938 938 PATH_TEST_EQ(p.stem(), "."); … … namespace 1068 1068 1069 1069 p = q = path("//net/"); 1070 1070 BOOST_TEST(p.relative_path().string() == ""); 1071 BOOST_TEST(p.parent_path().string() == " //net");1071 BOOST_TEST(p.parent_path().string() == ""); 1072 1072 PATH_TEST_EQ(q.remove_filename().string(), p.parent_path().string()); 1073 1073 BOOST_TEST(p.filename() == "/"); 1074 1074 BOOST_TEST(p.root_name() == "//net"); … … namespace 1079 1079 BOOST_TEST(p.has_root_directory()); 1080 1080 BOOST_TEST(!p.has_relative_path()); 1081 1081 BOOST_TEST(p.has_filename()); 1082 BOOST_TEST( p.has_parent_path());1082 BOOST_TEST(!p.has_parent_path()); 1083 1083 BOOST_TEST(p.is_absolute()); 1084 1084 1085 1085 p = q = path("//net/foo");