Fixed relative lambda names in MSVC

This commit is contained in:
Bartek Kryza
2023-01-22 15:49:12 +01:00
parent e0a42be63a
commit b802eaee3d
6 changed files with 58 additions and 14 deletions

View File

@@ -232,12 +232,20 @@ TEST_CASE("Test ensure_path_is_absolute", "[unit-test]")
{
using namespace clanguml::util;
CHECK(ensure_path_is_absolute("a/b/c", "/tmp").string() == "/tmp/a/b/c");
CHECK(ensure_path_is_absolute("/a/b/c", "/tmp").string() == "/a/b/c");
CHECK(ensure_path_is_absolute("", "/tmp").string() == "/tmp/");
CHECK(ensure_path_is_absolute(".", "/tmp").string() == "/tmp/");
CHECK(ensure_path_is_absolute("..", "/tmp").string() == "/");
CHECK(ensure_path_is_absolute("/", "/tmp").string() == "/");
using std::filesystem::path;
CHECK(ensure_path_is_absolute("a/b/c", "/tmp").string() ==
path{"/tmp/a/b/c"}.make_preferred());
CHECK(ensure_path_is_absolute("/a/b/c", "/tmp").string() ==
path{"/a/b/c"}.make_preferred());
CHECK(ensure_path_is_absolute("", "/tmp").string() ==
path{"/tmp/"}.make_preferred());
CHECK(ensure_path_is_absolute(".", "/tmp").string() ==
path{"/tmp/"}.make_preferred());
CHECK(ensure_path_is_absolute("..", "/tmp").string() ==
path{"/"}.make_preferred());
CHECK(ensure_path_is_absolute("/", "/tmp").string() ==
path{"/"}.make_preferred());
}
TEST_CASE("Test hash_seed", "[unit-test]")