Lines Matching defs:tests
43 /* tests here do not require specific precision, so we just use double */
78 const struct testcase *tests = test_vals;
85 rv = scalbn(tests[i].inval, tests[i].exp);
86 ATF_CHECK_EQ_MSG(errno, tests[i].error,
88 tests[i].error);
89 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*DBL_EPSILON,
91 i, rv, tests[i].result, tests[i].result-rv);
220 const struct testcase *tests = test_vals;
227 rv = scalbnf(tests[i].inval, tests[i].exp);
228 ATF_CHECK_EQ_MSG(errno, tests[i].error,
230 tests[i].error);
231 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*FLT_EPSILON,
233 i, rv, tests[i].result, tests[i].result-rv);
365 const struct testcase *tests = test_vals;
372 rv = scalbnl(tests[i].inval, tests[i].exp);
373 ATF_CHECK_EQ_MSG(errno, tests[i].error,
375 tests[i].error);
376 ATF_CHECK_MSG(fabsl(rv-(long double)tests[i].result)<2.0*LDBL_EPSILON,
378 i, rv, (long double)tests[i].result, (long double)tests[i].result-rv);