logic: Fixed saving project name to ProjectSettings also sets project location to '/'

This commit is contained in:
Eberhard Graether
2017-06-19 23:38:39 +02:00
parent 05c2878eec
commit 652a55b4fb
5 changed files with 28 additions and 23 deletions
+8
View File
@@ -66,6 +66,14 @@ public:
TS_ASSERT(path.parentDirectory().isDirectory());
}
void test_empty_file_path_has_empty_parent_directory()
{
FilePath path;
TS_ASSERT(path.empty());
TS_ASSERT(path.parentDirectory().empty());
}
void test_file_path_is_absolute()
{
FilePath path("data/FilePathTestSuite/a.cpp");