diff options
Diffstat (limited to 'src/unittest/test_filepath.cpp')
-rw-r--r-- | src/unittest/test_filepath.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unittest/test_filepath.cpp b/src/unittest/test_filepath.cpp index 6ea7ac076..ac2d69b5a 100644 --- a/src/unittest/test_filepath.cpp +++ b/src/unittest/test_filepath.cpp @@ -252,6 +252,9 @@ void TestFilePath::testRemoveRelativePathComponent() path = p("."); result = fs::RemoveRelativePathComponents(path); UASSERT(result == ""); + path = p("../a"); + result = fs::RemoveRelativePathComponents(path); + UASSERT(result == ""); path = p("./subdir/../.."); result = fs::RemoveRelativePathComponents(path); UASSERT(result == ""); |