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:
Alex Lin
2018-02-09 08:49:15 -06:00
parent bc8d1a3796
commit 049c9a3207
2 changed files with 9 additions and 9 deletions

View File

@ -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);