Macros | Functions
parent_path_t.cc File Reference
#include "boost/test/unit_test.hpp"
#include "art/Utilities/parent_path.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (parent_path_t)
 

Functions

 BOOST_AUTO_TEST_CASE (parent_path)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (parent_path_t)

Definition at line 1 of file parent_path_t.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( parent_path  )

Definition at line 8 of file parent_path_t.cc.

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 }
std::string parent_path(std::string const &path)
Definition: parent_path.cc:15