This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/tests/sensors/offline/TestOffline.cpp
FrankE a2c9e575a2 huge commit
- worked on about everything
- grid walker using plugable modules
- wifi models
- new distributions
- worked on geometric data-structures
- added typesafe timestamps
- worked on grid-building
- added sensor-classes
- added sensor analysis (step-detection, turn-detection)
- offline data reader
- many test-cases
2016-08-29 08:18:44 +02:00

29 lines
772 B
C++

#ifdef WITH_TESTS
#include "../../Tests.h"
#include "../../../sensors/offline/OfflineAndroid.h"
TEST(Offline, test1) {
OfflineAndroid off(getDataFile("offlineAndroid.dat"));
ASSERT_EQ(6, off.getGroundTruth().size());
ASSERT_EQ(1, off.getWiFi().size());
}
// cleanup pattern
// ^[0-9]*;(-1|0|1|2|3|4|5|6|7|9|10|11);.*
TEST(Offline, test2) {
OfflineAndroid off(getDataFile("path4wifi.dat"));
ASSERT_EQ(20, off.getGroundTruth().size());
}
TEST(Offline, testPath) {
OfflineAndroid off(getDataFile("train/walks/path4_nexus_backward.dat"));
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
off.getWalkedPathInterpolatorCM();
}
#endif