diff --git a/Tests/UnitTests/GUI/TestProjectUtils.cpp b/Tests/UnitTests/GUI/TestProjectUtils.cpp index eb804e0ca9b526000754b35b907eb81bff9d603e..442322d73925fde5e9c0545af66b7694a7ff113f 100644 --- a/Tests/UnitTests/GUI/TestProjectUtils.cpp +++ b/Tests/UnitTests/GUI/TestProjectUtils.cpp @@ -4,10 +4,11 @@ #include <QDir> #include <QFile> #include <QTextStream> +#include <iostream> namespace { -const QString& projectDir = "test_ProjectUtils"; +const QString projectDir = "test_ProjectUtils"; } class TestProjectUtils : public ::testing::Test @@ -47,35 +48,31 @@ TEST_F(TestProjectUtils, test_basicFileOperations) TEST_F(TestProjectUtils, test_nonXMLDataInDir) { EXPECT_EQ(1, 1); - QStringList test_nonxml_files = QStringList() << "jobdata_job2_0.int.gz" - << "refdata_job2_0.int.gz" - << "realdata_box_nanodots_0.int.gz" - << "realdata_untitled_0.int.gz"; - - QStringList test_some_other_files = QStringList() << "user_0.int.gz" - << "b.txt" - << "untitled.pro"; - - // creating files - QStringList test_files = QStringList() << test_nonxml_files << test_some_other_files; - for (auto name : test_files) { + QStringList test_nonxml_files{"jobdata_job2_0.int.gz", "refdata_job2_0.int.gz", + "realdata_box_nanodots_0.int.gz", "realdata_untitled_0.int.gz"}; + + QStringList test_some_other_files{"user_0.int.gz", "b.txt", "untitled.pro"}; + + std::cout << "create files ..." << std::endl; + for (auto name : test_nonxml_files + test_some_other_files) { createTestFile(projectDir, name); - EXPECT_TRUE(ProjectUtils::exists(projectDir + "/" + name)); + ASSERT_TRUE(ProjectUtils::exists(projectDir + "/" + name)); } - // Checking nonXMLDataInDir method, should contain only files from test_nonxml_files. + std::cout << "check nonXMLDataInDir ..." << std::endl; + // Check nonXMLDataInDir method, should contain only files from test_nonxml_files. QStringList nonxml = ProjectUtils::nonXMLDataInDir(projectDir); + std::cout << "sort files ..." << std::endl; nonxml.sort(); test_nonxml_files.sort(); - EXPECT_EQ(nonxml.size(), 4); EXPECT_EQ(test_nonxml_files, nonxml); - // removing nonxml files + std::cout << "remove nonxml files ..." << std::endl; EXPECT_TRUE(ProjectUtils::removeFiles(projectDir, nonxml) == true); - // checking that no files left + std::cout << "check that no files left ..." << std::endl; nonxml = ProjectUtils::nonXMLDataInDir(projectDir); EXPECT_EQ(nonxml.size(), 0); } diff --git a/auto/Wrap/doxygen_core.i b/auto/Wrap/doxygen_core.i index 26841489f2f8ec8ddd657638974e1a6e03a406cc..62d22089c620400dbe50042ffd8af526dee55cae 100644 --- a/auto/Wrap/doxygen_core.i +++ b/auto/Wrap/doxygen_core.i @@ -20508,9 +20508,6 @@ Template function to create an integrator object // File: SysUtils_8h.xml -// File: w32pragma_8h.xml - - // File: BasicVector3D_8cpp.xml %feature("docstring") vecOfLambdaAlphaPhi "BasicVector3D<double> vecOfLambdaAlphaPhi(double _lambda, double _alpha, double _phi)