Skip to content

Commit

Permalink
Add test set
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed May 22, 2024
1 parent 9b3b9be commit 7d85d73
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ test-suite special_fun :
[ run git_issue_961.cpp ]
[ run git_issue_1006.cpp ]
[ run git_issue_184.cpp ]
[ run git_issue_1137.cpp ]
[ run special_functions_test.cpp ../../test/build//boost_unit_test_framework ]
[ run test_airy.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ]
[ run test_bessel_j.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ]
Expand Down
19 changes: 19 additions & 0 deletions test/git_issue_1137.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright Matt Borland 2024.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See: https://github.com/boostorg/math/issues/1137

#define BOOST_MATH_POLY_METHOD 0
#define BOOST_MATH_RATIONAL_METHOD 0

#include <boost/math/tools/config.hpp>

int main()
{
static_assert(BOOST_MATH_POLY_METHOD == 0, "User defined as 0");
static_assert(BOOST_MATH_RATIONAL_METHOD == 0, "User defined as 0");

return 0;
}

0 comments on commit 7d85d73

Please sign in to comment.