Skip to content

Commit 3bc58cc

Browse files
committed
Gammas on probation tweak tests and tols
1 parent 574ef0a commit 3bc58cc

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

test/test_tgamma.cpp

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,29 @@ auto main() -> int
452452
using decimal_type = boost::decimal::decimal32;
453453
using float_type = float;
454454

455-
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(768, 0.01L, 23.4L);
455+
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(768, 0.1L, 0.9L);
456+
457+
BOOST_TEST(result_tgamma_is_ok);
458+
459+
result_is_ok = (result_tgamma_is_ok && result_is_ok);
460+
}
461+
462+
{
463+
using decimal_type = boost::decimal::decimal32;
464+
using float_type = float;
465+
466+
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(768, 2.1L, 23.4L);
467+
468+
BOOST_TEST(result_tgamma_is_ok);
469+
470+
result_is_ok = (result_tgamma_is_ok && result_is_ok);
471+
}
472+
473+
{
474+
using decimal_type = boost::decimal::decimal64;
475+
using float_type = double;
476+
477+
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(3072, 0.01L, 0.9L);
456478

457479
BOOST_TEST(result_tgamma_is_ok);
458480

@@ -463,7 +485,7 @@ auto main() -> int
463485
using decimal_type = boost::decimal::decimal64;
464486
using float_type = double;
465487

466-
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(3072, 0.01L, 78.9L);
488+
const auto result_tgamma_is_ok = local::test_tgamma<decimal_type, float_type>(3072, 2.1L, 78.9L);
467489

468490
BOOST_TEST(result_tgamma_is_ok);
469491

0 commit comments

Comments
 (0)