#include "Utils/FileUtils.h" #include #include #include TEST_CASE("FileUtils: Parses paths string in specified order", "[fileutils]") { std::vector paths; REQUIRE(utils::ParsePathsString("zone_raw/b;zone_raw/a;\"raw;c\"", paths)); REQUIRE(paths == std::vector{"zone_raw/b", "zone_raw/a", "raw;c"}); } TEST_CASE("FileUtils: Parses paths string keeping first of duplicate paths", "[fileutils]") { std::vector paths{"raw"}; REQUIRE(utils::ParsePathsString("zone_raw;raw;zone_raw;lang", paths)); REQUIRE(paths == std::vector{"raw", "zone_raw", "lang"}); }