assertEqual(PathType(""), PathType("")); assertEqual(PathType("."), PathType("")); assertEqual(PathType(""), PathType(".")); auto p1 = PathType("/hello/world"); auto p2 = PathType("/hello/world"); assertEqual(p1, p2); static if(is(PathType == WindowsPath)) { auto p3 = PathType("/hello/world"); } else static if(is(PathType == PosixPath)) { auto p3 = PathType("/hello\\world"); } auto p4 = PathType("/hello\\world"); assertEqual(p3, p4);