Lines Matching defs:tests
43 /* tests here do not require specific precision, so we just use double */
78 const struct testcase *tests = test_vals;
87 rv = scalbn(tests[i].inval, tests[i].exp);
88 ATF_CHECK_EQ_MSG(errno, tests[i].error,
90 tests[i].error);
91 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*DBL_EPSILON,
93 i, rv, tests[i].result, tests[i].result-rv);
222 const struct testcase *tests = test_vals;
231 rv = scalbnf(tests[i].inval, tests[i].exp);
232 ATF_CHECK_EQ_MSG(errno, tests[i].error,
234 tests[i].error);
235 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*FLT_EPSILON,
237 i, rv, tests[i].result, tests[i].result-rv);
369 const struct testcase *tests = test_vals;
378 rv = scalbnl(tests[i].inval, tests[i].exp);
379 ATF_CHECK_EQ_MSG(errno, tests[i].error,
381 tests[i].error);
382 ATF_CHECK_MSG(fabsl(rv-(long double)tests[i].result)<2.0*LDBL_EPSILON,
384 i, rv, (long double)tests[i].result, (long double)tests[i].result-rv);