Skip to content

Commit

Permalink
Fix mingw error
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Jun 11, 2024
1 parent b8e0a1b commit 1233451
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/test_decimal64_fast_basis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,17 @@ void test_non_finite_values()

void test_unary_arithmetic()
{
constexpr decimal64_fast one(0b1, -100);
constexpr decimal64_fast one(1);
BOOST_TEST(+one == one);
BOOST_TEST(-one != one);
if(!BOOST_TEST(-one != one))
{
// LCOV_EXCL_START
std::cerr << "One: " << one
<< "\nNeg: " << -one
<< "\n Bid: " << to_bid(one)
<< "\nNeg Bid: " << to_bid(-one) << std::endl;
// LCOV_EXCL_STOP
}
}

void test_addition()
Expand Down

0 comments on commit 1233451

Please sign in to comment.