fixed minor test-case build issue
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
#include "../../../sensors/offline/OfflineAndroid.h"
|
#include "../../../sensors/offline/OfflineAndroid.h"
|
||||||
|
|
||||||
TEST(Offline, test1) {
|
TEST(Offline, test1) {
|
||||||
OfflineAndroid off(getDataFile("offlineAndroid.dat"));
|
OfflineAndroid off;
|
||||||
|
off.parse(getDataFile("offlineAndroid.dat"));
|
||||||
ASSERT_EQ(6, off.getGroundTruth().size());
|
ASSERT_EQ(6, off.getGroundTruth().size());
|
||||||
ASSERT_EQ(1, off.getWiFi().size());
|
ASSERT_EQ(1, off.getWiFi().size());
|
||||||
}
|
}
|
||||||
@@ -13,13 +14,15 @@ TEST(Offline, test1) {
|
|||||||
// cleanup pattern
|
// cleanup pattern
|
||||||
// ^[0-9]*;(-1|0|1|2|3|4|5|6|7|9|10|11);.*
|
// ^[0-9]*;(-1|0|1|2|3|4|5|6|7|9|10|11);.*
|
||||||
TEST(Offline, test2) {
|
TEST(Offline, test2) {
|
||||||
OfflineAndroid off(getDataFile("path4wifi.dat"));
|
OfflineAndroid off;
|
||||||
|
off.parse(getDataFile("path4wifi.dat"));
|
||||||
ASSERT_EQ(20, off.getGroundTruth().size());
|
ASSERT_EQ(20, off.getGroundTruth().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST(Offline, testPath) {
|
TEST(Offline, testPath) {
|
||||||
OfflineAndroid off(getDataFile("train/walks/path4_nexus_backward.dat"));
|
OfflineAndroid off;
|
||||||
|
off.parse(getDataFile("train/walks/path4_nexus_backward.dat"));
|
||||||
ASSERT_EQ(21, off.getGroundTruth().size());
|
ASSERT_EQ(21, off.getGroundTruth().size());
|
||||||
ASSERT_EQ(off.getWalkedPath().pos_cm[0], off.getWalkedPath().pos_cm[1]); // same waypoint twice. not moving within first few seconds
|
ASSERT_EQ(off.getWalkedPath().pos_cm[0], off.getWalkedPath().pos_cm[1]); // same waypoint twice. not moving within first few seconds
|
||||||
off.getWalkedPathInterpolatorCM();
|
off.getWalkedPathInterpolatorCM();
|
||||||
|
|||||||
Reference in New Issue
Block a user