test: Put test data into TestSuite specific folders

This commit is contained in:
Eberhard Graether
2014-07-01 00:19:48 +02:00
parent 324dff80a8
commit 4c0f07c16f
15 changed files with 41 additions and 32 deletions
+4 -4
View File
@@ -90,7 +90,7 @@ public:
void test_textAccessFile_constructor()
{
std::string filePath = "data/test_text.txt";
std::string filePath = "data/TextAccessTestSuite/text.txt";
std::shared_ptr<TextAccess> textAccess = TextAccess::createFromFile(filePath);
@@ -99,7 +99,7 @@ public:
void test_textAccessFile_lines_count()
{
std::string filePath = "data/test_text.txt";
std::string filePath = "data/TextAccessTestSuite/text.txt";
unsigned int lineCount = 7;
std::shared_ptr<TextAccess> textAccess = TextAccess::createFromFile(filePath);
@@ -109,7 +109,7 @@ public:
void test_textAccessFile_lines_content()
{
std::string filePath = "data/test_text.txt";
std::string filePath = "data/TextAccessTestSuite/text.txt";
std::shared_ptr<TextAccess> textAccess = TextAccess::createFromFile(filePath);
std::vector<std::string> lines = textAccess->getLines(1, 4);
@@ -123,7 +123,7 @@ public:
void test_textAccessFile_get_filePath()
{
std::string filePath = "data/test_text.txt";
std::string filePath = "data/TextAccessTestSuite/text.txt";
std::shared_ptr<TextAccess> textAccess = TextAccess::createFromFile(filePath);
TS_ASSERT_EQUALS(textAccess->getFilePath(), filePath);