Skip to content

Commit

Permalink
Fix up static_asserts in test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Jun 28, 2021
1 parent d4de174 commit 4db247b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_fibonacci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ BOOST_AUTO_TEST_CASE(generator_check) {

BOOST_AUTO_TEST_CASE(constexpr_check) {
constexpr int x = boost::math::unchecked_fibonacci<int>(32);
static_assert(x == 2178309);
static_assert(x == 2178309, "constexpr check 1");

constexpr double y = boost::math::unchecked_fibonacci<double>(40);
static_assert(y == 102334155.0);
static_assert(y == 102334155.0, "constexpr check 2");

constexpr int xx = boost::math::fibonacci<int>(32);
static_assert(xx == 2178309);
static_assert(xx == 2178309, "constexpr check 3");

constexpr double yy = boost::math::fibonacci<double>(40);
static_assert(yy == 102334155.0);
static_assert(yy == 102334155.0, "constexpr check 4");

}

Expand Down

0 comments on commit 4db247b

Please sign in to comment.