From c7def68fd4da93a706e520f308ad7afc17ed49f7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 2 Dec 2017 22:23:13 +0200 Subject: [PATCH] Remove test case for invalid Path iterator Path::Iterator now caches the current component and no longer throws when dereferencing end(). --- tests/path.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/path.cpp b/tests/path.cpp index 6e88da3..fbb5ff5 100644 --- a/tests/path.cpp +++ b/tests/path.cpp @@ -31,7 +31,6 @@ PathTests::PathTests() 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(); add(&PathTests::indexing, "Indexing"); add(&PathTests::invalid_index, "Invalid index").expect_throw(); } @@ -120,12 +119,6 @@ void PathTests::iterator_special() EXPECT(iter==path.end()); } -void PathTests::invalid_iterator() -{ - FS::Path path("foo"); - *path.end(); -} - void PathTests::indexing() { FS::Path path("/foo/bar"); -- 2.43.0