Skip to content

Commit f0ef1fd

Browse files
committed
Add missing file!
1 parent 54a5584 commit f0ef1fd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/git_issue_1247.cpp

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// (C) Copyright John Maddock 2025.
2+
// Use, modification and distribution are subject to the
3+
// Boost Software License, Version 1.0. (See accompanying file
4+
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5+
6+
// See also: https://godbolt.org/z/nhMsKb8Yr
7+
8+
#include <boost/math/special_functions/beta.hpp>
9+
#include <boost/core/lightweight_test.hpp>
10+
11+
int main()
12+
{
13+
float a = 1e-20;
14+
float b = 1e-21;
15+
float z = 0.5;
16+
float p = boost::math::ibeta(a, b, z, boost::math::policies::make_policy(boost::math::policies::promote_float<false>()));
17+
18+
BOOST_TEST(p != 0);
19+
20+
return boost::report_errors();
21+
}

0 commit comments

Comments
 (0)