fixed issue within file-reader when reading empty data-parts

This commit is contained in:
2018-01-27 12:07:06 +01:00
parent 1a1f249e9b
commit e44d3421de
5 changed files with 43 additions and 6 deletions

View File

@@ -7,7 +7,8 @@
static inline std::string getDataFile(const std::string& name) {
//return "/mnt/data/workspaces/Indoor/tests/data/" + name;
return "/home/toni/Documents/programme/localization/Indoor/tests/data/" + name;
return "/mnt/vm/paper/diss/code/Indoor/tests/data/" + name;
//return "/home/toni/Documents/programme/localization/Indoor/tests/data/" + name;
}

View File

@@ -0,0 +1,5 @@
136731;0;1.6424103;2.4756012;14.106628
136728;8;
136731;1;0.5573883;2.0301208;9.57785
136733;3;-0.8585968;-1.057785;-1.1313019
136831;8;68c63a9f81f1;2422;-55;5ccf7fc40df3;2422;-66

View File

@@ -0,0 +1,18 @@
#ifdef WITH_TESTS
#include "../../Tests.h"
#include "../../../sensors/offline/FileReader.h"
TEST(FileReader, test1) {
std::string file = "/tmp/FirstTest.csv";//getDataFile("fileReader1.txt");
Offline::FileReader reader(file);
int i = 0; (void) i;
}
#endif