geometry changes/fixes/new features
new grid walkers + fixes new test-cases worked on step/and turn detection android offline-data-reader worked on vap-grouping
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "Exception.h"
|
||||
#include <sstream>
|
||||
#include <cmath>
|
||||
|
||||
// for GTEST Testcases
|
||||
#define FRIEND_TEST(test_case_name, test_name)\
|
||||
@@ -66,9 +67,12 @@ namespace Assert {
|
||||
if (std::abs(v1-v2) > delta) {doThrow(err);}
|
||||
}
|
||||
|
||||
|
||||
template <typename T, typename STR> static inline void isBetween(const T v, const T min, const T max, const STR err) {
|
||||
std::stringstream ss; ss << "\n[" << min << ":" << max << "] but is " << v << "\n";
|
||||
if (v < min || v > max) {doThrow(err+ss.str());}
|
||||
if (v < min || v > max) {
|
||||
std::stringstream ss; ss << "\n[" << min << ":" << max << "] but is " << v << "\n";
|
||||
doThrow(err+ss.str());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user