Skip to content

Commit

Permalink
refs #12, fixed small issue with new recursive_directory_iterator tes…
Browse files Browse the repository at this point in the history
…ts on Windows due to not comparing generic format.
  • Loading branch information
gulrak committed May 4, 2019
1 parent e8ced30 commit da215a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/filesystem_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ TEST_CASE("30.10.14 class recursive_directory_iterator", "[filesystem][recursive
auto iter = fs::recursive_directory_iterator(".");
std::multimap<std::string, int> result;
while(iter != fs::recursive_directory_iterator()) {
result.insert(std::make_pair(iter->path().string(), iter.depth()));
result.insert(std::make_pair(iter->path().generic_string(), iter.depth()));
++iter;
}
std::stringstream os;
Expand All @@ -1243,7 +1243,7 @@ TEST_CASE("30.10.14 class recursive_directory_iterator", "[filesystem][recursive
auto iter = fs::recursive_directory_iterator(".");
std::multimap<std::string, int> result;
while(iter != fs::recursive_directory_iterator()) {
result.insert(std::make_pair(iter->path().string(), iter.depth()));
result.insert(std::make_pair(iter->path().generic_string(), iter.depth()));
if(iter->path() == "./d1/d2") {
iter.disable_recursion_pending();
}
Expand All @@ -1265,7 +1265,7 @@ TEST_CASE("30.10.14 class recursive_directory_iterator", "[filesystem][recursive
auto iter = fs::recursive_directory_iterator(".");
std::multimap<std::string, int> result;
while(iter != fs::recursive_directory_iterator()) {
result.insert(std::make_pair(iter->path().string(), iter.depth()));
result.insert(std::make_pair(iter->path().generic_string(), iter.depth()));
if(iter->path() == "./d1/d2") {
iter.pop();
}
Expand Down

0 comments on commit da215a8

Please sign in to comment.