many changes and updates

- changed the wifi-estimation api
- adjusted test-cases
- worked on grid-bulding and grid-importance
- new walking modules
- fixed some minor issues
This commit is contained in:
2016-08-29 19:02:32 +02:00
parent a2c9e575a2
commit a203305628
23 changed files with 505 additions and 251 deletions

View File

@@ -2,6 +2,11 @@
#define ASSERTIONS_H
#include "Exception.h"
#include <sstream>
// for GTEST Testcases
#define FRIEND_TEST(test_case_name, test_name)\
friend class test_case_name##_##test_name##_Test
/**
* this file provides assertion methods that may be enabled to trace
@@ -62,7 +67,8 @@ namespace Assert {
}
template <typename T, typename STR> static inline void isBetween(const T v, const T min, const T max, const STR err) {
if (v < min || v > max) {doThrow(err);}
std::stringstream ss; ss << "\n[" << min << ":" << max << "] but is " << v << "\n";
if (v < min || v > max) {doThrow(err+ss.str());}
}
}