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:
@@ -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());}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user