mirror of
https://github.com/nasa/trick.git
synced 2025-06-17 22:58:25 +00:00
Some of Trick's unit conversions have too many significant digits #557
Hard coded values in unit conversion test program.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include "trick/units_conv.h"
|
||||
|
||||
#define TOL 1e-13
|
||||
#define TOL 1e-7
|
||||
/*
|
||||
double tolerance(int exp)
|
||||
{
|
||||
@ -65,7 +65,7 @@ TEST(UnitsInterface, Newton_to_Pound)
|
||||
|
||||
pounds = convert_units(1.0, &Newton_to_Pound);
|
||||
|
||||
ASSERT_NEAR((1.0/(0.4535923697760192*0.3048)), pounds, TOL);
|
||||
ASSERT_NEAR((1.0/(0.45359237*0.3048)), pounds, TOL);
|
||||
|
||||
clean_up_Units_t(&Newton);
|
||||
clean_up_Units_t(&Pound);
|
||||
|
Reference in New Issue
Block a user