Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed Oct 25, 2023
1 parent 51e5cae commit 7674879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/GeneratorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ TEST_CASE("Generator can read existing entries", "[generator]") {
std::vector<std::filesystem::path> expected{
"foo.txt", "empty_file", "filè with nön äscií chårs", "empty_directory/", "bar/", "file with spaces in name", "bar/baz.txt", "./"
};
REQUIRE_THAT(fileEntries, Catch::Matchers::Equals(expected));
REQUIRE_THAT(fileEntries, Catch::Matchers::UnorderedEquals(expected));

}

Expand Down Expand Up @@ -253,7 +253,7 @@ TEST_CASE("Generator ignores existing entries if specified, but updates with new
std::transform(results.processedFiles.begin(), results.processedFiles.end(), std::back_inserter(statusEntries),
[](const Squall::GenerateEntry& entry) { return std::pair(entry.fileEntry.fileName, entry.status); });

REQUIRE_THAT(statusEntries, Catch::Matchers::Equals(
REQUIRE_THAT(statusEntries, Catch::Matchers::UnorderedEquals(
std::vector<std::pair<std::string, GenerateFileStatus>>{std::pair("foo.txt", GenerateFileStatus::Existed),
std::pair("baz.txt", GenerateFileStatus::Copied),
std::pair("bar/", GenerateFileStatus::Copied),
Expand Down

0 comments on commit 7674879

Please sign in to comment.