diff --git a/src/tests/test_strtod_nol.c b/src/tests/test_strtod_nol.c index 8e5c5245..408cf464 100644 --- a/src/tests/test_strtod_nol.c +++ b/src/tests/test_strtod_nol.c @@ -39,8 +39,8 @@ int main(int argc, char *argv[]) double val; for(i=0; tests[i].string != NULL; i++) { - if(strtod_nol_or_err(tests[i].string, "Cannot parse number") != - tests[i].result) { + if(!dequal (strtod_nol_or_err(tests[i].string, "Cannot parse number"), + tests[i].result)) { fprintf(stderr, "FAIL: strtod_nol_or_err(\"%s\") != %f\n", tests[i].string, tests[i].result); return EXIT_FAILURE;