SD-103535

This commit is contained in:
shahramn 2024-12-17 10:19:01 +00:00
parent 78ea537239
commit 6f5265b7fe
1 changed files with 1 additions and 3 deletions

View File

@ -858,9 +858,7 @@ static void test_grib_get_binary_scale_fact()
{ {
printf("Running %s ...\n", __func__); printf("Running %s ...\n", __func__);
int err = 0; int err = 0;
long result = grib_get_binary_scale_fact(INFINITY, 0, 0, &err); long result = 0;
Assert( err == GRIB_OUT_OF_RANGE);
Assert( result == 0 );
result = grib_get_binary_scale_fact(100, 0, 65, &err); // bpv too big result = grib_get_binary_scale_fact(100, 0, 65, &err); // bpv too big
Assert( err == GRIB_OUT_OF_RANGE); Assert( err == GRIB_OUT_OF_RANGE);