@@ -35,6 +35,7 @@ class TestPath : public TestFixture
3535
3636 void simplify_path ()
3737 {
38+ // Path::simplifyPath()
3839 ASSERT_EQUALS (" index.h" , Path::simplifyPath (" index.h" ));
3940 ASSERT_EQUALS (" /index.h" , Path::simplifyPath (" /index.h" ));
4041 ASSERT_EQUALS (" /path/" , Path::simplifyPath (" /path/" ));
@@ -49,6 +50,16 @@ class TestPath : public TestFixture
4950 ASSERT_EQUALS (" a/.." , Path::simplifyPath (" a/.." ));
5051 ASSERT_EQUALS (" ../../src/test.cpp" , Path::simplifyPath (" ../../src/test.cpp" ));
5152 ASSERT_EQUALS (" ../../../src/test.cpp" , Path::simplifyPath (" ../../../src/test.cpp" ));
53+
54+ // Path::removeQuotationMarks()
55+ ASSERT_EQUALS (" index.cpp" , Path::removeQuotationMarks (" index.cpp" ));
56+ ASSERT_EQUALS (" index.cpp" , Path::removeQuotationMarks (" \" index.cpp" ));
57+ ASSERT_EQUALS (" index.cpp" , Path::removeQuotationMarks (" index.cpp\" " ));
58+ ASSERT_EQUALS (" index.cpp" , Path::removeQuotationMarks (" \" index.cpp\" " ));
59+ ASSERT_EQUALS (" path to/index.cpp" , Path::removeQuotationMarks (" \" path to\" /index.cpp" ));
60+ ASSERT_EQUALS (" path to/index.cpp" , Path::removeQuotationMarks (" \" path to/index.cpp\" " ));
61+ ASSERT_EQUALS (" the/path to/index.cpp" , Path::removeQuotationMarks (" the/\" path to\" /index.cpp" ));
62+ ASSERT_EQUALS (" the/path to/index.cpp" , Path::removeQuotationMarks (" \" the/path to/index.cpp\" " ));
5263 }
5364};
5465
0 commit comments