parent_path_t.cc
Go to the documentation of this file.
1 #define BOOST_TEST_MODULE (parent_path_t)
2 #include "boost/test/unit_test.hpp"
3 
5 
6 BOOST_AUTO_TEST_SUITE(parent_path_t)
7 
9 {
10  BOOST_TEST(art::parent_path("bar") == ".");
11  BOOST_TEST(art::parent_path("/bar") == "/");
12  BOOST_TEST(art::parent_path("foo/bar") == "foo");
13 }
14 
15 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(parent_path)
Definition: parent_path_t.cc:8
std::string parent_path(std::string const &path)
Definition: parent_path.cc:15