add(&PathTests::iterator_abs, "Iterator (absolute path)");
add(&PathTests::iterator_rel, "Iterator (relative path)");
add(&PathTests::iterator_special, "Iterator (special cases)");
- add(&PathTests::invalid_iterator, "Invalid iterator").expect_throw<logic_error>();
add(&PathTests::indexing, "Indexing");
add(&PathTests::invalid_index, "Invalid index").expect_throw<invalid_argument>();
}
EXPECT(iter==path.end());
}
-void PathTests::invalid_iterator()
-{
- FS::Path path("foo");
- *path.end();
-}
-
void PathTests::indexing()
{
FS::Path path("/foo/bar");