From 767487906ac637858ecea467179a4e4a8e7a0b91 Mon Sep 17 00:00:00 2001 From: Erik Ogenvik Date: Wed, 25 Oct 2023 12:42:54 +0200 Subject: [PATCH] Fixed tests. --- tests/GeneratorTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GeneratorTest.cpp b/tests/GeneratorTest.cpp index 810c2b7..7838228 100644 --- a/tests/GeneratorTest.cpp +++ b/tests/GeneratorTest.cpp @@ -151,7 +151,7 @@ TEST_CASE("Generator can read existing entries", "[generator]") { std::vector 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)); } @@ -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("foo.txt", GenerateFileStatus::Existed), std::pair("baz.txt", GenerateFileStatus::Copied), std::pair("bar/", GenerateFileStatus::Copied),