diff options
Diffstat (limited to 'test/path_test.cpp')
-rw-r--r-- | test/path_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/path_test.cpp b/test/path_test.cpp index 573448c..9992cbb 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -67,7 +67,7 @@ main() bool valid = true; try { - Path path("/ends/in/slash/"); + const Path path{"/ends/in/slash/"}; } catch (const Path::BadPath& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; @@ -76,7 +76,7 @@ main() valid = true; try { - Path path(std::string("/has//double/slash")); + const Path path{std::string("/has//double/slash")}; } catch (const Path::BadPath& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; |