#include #include #include #define TestPath(Path) \ TEST_CASE("LexicallyNormal") { auto Path = GENERATE("", "/", "/./", "//.", "//./", "//.//", ".", "..", ".//", "../../", "././", "./../", "./../", "./.././.././.", "./.././.././..", "./foo/../", "foo/./bar/..", "foo/.///bar/..", "foo/.///bar/../"); REQUIRE(std::string_view(FHU::Filesystem::LexicallyNormal(Path)) == std::string_view(std::filesystem::path(Path).lexically_normal().string())); }