Skip to content

Commit

Permalink
Ignore additional operation
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Feb 17, 2025
1 parent f091a0a commit 19f9e2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/random_decimal32_fast_comp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ void random_LE(T lower, T upper)
}

BOOST_TEST(decimal32_fast(dist(rng)) <= std::numeric_limits<decimal32_fast>::infinity());

#if !defined(_MSC_VER) || (_MSC_VER >= 1930 || _MSVC_LANG > 201703L)
BOOST_TEST(!(decimal32_fast(dist(rng)) <= -std::numeric_limits<decimal32_fast>::infinity()));
#endif

BOOST_TEST(!(decimal32_fast(dist(rng)) <= std::numeric_limits<decimal32_fast>::quiet_NaN()));
BOOST_TEST(!(std::numeric_limits<decimal32_fast>::quiet_NaN() <= std::numeric_limits<decimal32_fast>::quiet_NaN()));
}
Expand Down

0 comments on commit 19f9e2f

Please sign in to comment.