From 5cc4e1118cab0bda6701851e34231109702c80a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 9 Aug 2016 22:59:36 +0200 Subject: [PATCH] Added TODO testcases for Path::simplifyPath() --- test/testpath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testpath.cpp b/test/testpath.cpp index d96b2abb6..874d7fcf5 100644 --- a/test/testpath.cpp +++ b/test/testpath.cpp @@ -76,6 +76,8 @@ private: ASSERT_EQUALS("src/test.cpp", Path::simplifyPath(".//src/test.cpp")); ASSERT_EQUALS("src/test.cpp", Path::simplifyPath(".///src/test.cpp")); ASSERT_EQUALS("test.cpp", Path::simplifyPath("./././././test.cpp")); + TODO_ASSERT_EQUALS("src", "src/abc/..", Path::simplifyPath("src/abc/..")); + // TODO: don't crash ASSERT_EQUALS("src", Path::simplifyPath("src/abc/../")); // Handling of UNC paths on Windows ASSERT_EQUALS("//src/test.cpp", Path::simplifyPath("//src/test.cpp"));