mirror of
https://github.com/boostorg/math.git
synced 2025-05-11 21:33:52 +00:00
Fix up static_asserts in test case.
This commit is contained in:
parent
d4de174bbb
commit
4db247b09a
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user