Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Utilities
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
4
#include "
art/Utilities/parent_path.h
"
5
6
BOOST_AUTO_TEST_SUITE(parent_path_t)
7
8
BOOST_AUTO_TEST_CASE
(
parent_path
)
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
BOOST_AUTO_TEST_CASE(parent_path)
Definition:
parent_path_t.cc:8
art::parent_path
std::string parent_path(std::string const &path)
Definition:
parent_path.cc:15
parent_path.h
Generated by
1.8.11