From 699491023df448dbd6114325d2f26f39be612b75 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 19 Jan 2024 12:36:30 +0000 Subject: [PATCH] Testing: Increase coverage --- tests/grib_ecc-1467.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/grib_ecc-1467.cc b/tests/grib_ecc-1467.cc index 34d7867e6..20a2b7268 100644 --- a/tests/grib_ecc-1467.cc +++ b/tests/grib_ecc-1467.cc @@ -23,8 +23,7 @@ int main(int argc, char** argv) double abs_error = 0; const double max_abs_error = 1e-03; const double tolerance = 1e-03; - double dmin; - double dmax; + double dmin, dmax, dval; float fval; FILE* in = NULL; @@ -44,6 +43,10 @@ int main(int argc, char** argv) h = codes_handle_new_from_file(0, in, PRODUCT_GRIB, &err); Assert(h); + CODES_CHECK(codes_get_float(h, "referenceValue", &fval), 0); + CODES_CHECK(codes_get_double(h, "referenceValue", &dval), 0); + printf("dval = %g, fval = %g\n", dval, fval); + CODES_CHECK(codes_get_size(h, "values", &values_len), 0); fvalues = (float*)malloc(values_len * sizeof(float));