updated tests to be sure that n op safe<?> is covered -

This commit is contained in:
Robert Ramey
2015-07-30 13:26:48 -07:00
parent f7117e7cf3
commit 321c7bbba0
9 changed files with 132 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ template <typename T> // T is char, int, etc data type
using safe_t = boost::numeric::safe<
T,
pic16_promotion,
boost::numeric::trap_exception // use for running tests
boost::numeric::throw_exception // use for running tests
>;
using int8 = safe_t<std::int8_t>;
@@ -179,9 +179,6 @@ Use the formula:
*/
uint16 get_stopping_distance(LEMPARAMETER velocity){
int32 d;
d = velocity;
//d *= velocity;
d = velocity * velocity;
d /= lem.acceleration;
d /= 2;