comply with @akohlmey's request

- revert my DBL_EPSILON change to EXPECT_FP_LE_WITH_EPS macro

- round the reference data for global_vector() to zeros for 2 unit tests to pass
This commit is contained in:
alphataubio
2024-08-06 02:12:52 -04:00
parent 83ab240921
commit 056e3c0853
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ void write_yaml_header(class YamlWriter *writer, TestConfig *cfg, const char *ve
do { \
const double diff = fabs(val1 - val2); \
const double div = std::min(fabs(val1), fabs(val2)); \
const double err = (div<DBL_EPSILON) ? diff : diff/div; \
const double err = (div==0.0) ? diff : diff/div; \
stats.add(err); \
EXPECT_PRED_FORMAT2(::testing::DoubleLE, err, eps); \
} while (0);