aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a5f7562..110c178 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -655,9 +655,7 @@ static Result<bool> newProjectCreateConf(const string &projectName, const string
projectConfStr += "version = \"0.1.0\"\n";
projectConfStr += "platforms = [\"";
projectConfStr += asString(SYSTEM_PLATFORM);
- projectConfStr += "\"]\n";
- projectConfStr += "tests = \"tests\"";
- projectConfStr += "\n\n";
+ projectConfStr += "\"]\n\n";
projectConfStr += "[dependencies]\n";
FileString projectConfPath = projectPath;
@@ -880,9 +878,9 @@ static int initProject(int argc, const _tinydir_char_t **argv)
exit(20);
}
createDirectoryRecursive(projectPath + TINYDIR_STRING("/src"));
- createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests"));
if(_tinydir_strcmp(lang, TINYDIR_STRING("c")) == 0 || _tinydir_strcmp(lang, TINYDIR_STRING("c++")) == 0)
{
+ createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests"));
createDirectoryRecursive(projectPath + TINYDIR_STRING("/include"));
FileString mainFileName;
@@ -1069,9 +1067,9 @@ static int newProject(int argc, const _tinydir_char_t **argv)
exit(20);
}
createDirectoryRecursive(projectPath + TINYDIR_STRING("/src"));
- createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests"));
if(_tinydir_strcmp(lang, TINYDIR_STRING("c")) == 0 || _tinydir_strcmp(lang, TINYDIR_STRING("c++")) == 0)
{
+ createDirectoryRecursive(projectPath + TINYDIR_STRING("/tests"));
createDirectoryRecursive(projectPath + TINYDIR_STRING("/include"));
FileString mainFileName;