Skip to content

Commit

Permalink
Disable failing ratio_less tests under msvc-14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 13, 2023
1 parent c944af3 commit d0fcf52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ratio_comparison/ratio_less_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See http://www.boost.org/LICENSE_1_0.txt

#include <boost/ratio/ratio.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#include <cstdint>

#define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)
Expand Down Expand Up @@ -58,6 +60,10 @@ void test()
typedef boost::ratio<1, -INTMAX_MAX> R2;
STATIC_ASSERT(!boost::ratio_less<R1, R2>::value);
}

#if BOOST_WORKAROUND(BOOST_MSSTL_VERSION, < 141)
#else

{
typedef boost::ratio<INTMAX_MAX, 0x7FFFFFFFFFFFFFFELL> R1;
typedef boost::ratio<0x7FFFFFFFFFFFFFFDLL, 0x7FFFFFFFFFFFFFFCLL> R2;
Expand All @@ -78,6 +84,9 @@ void test()
typedef boost::ratio<0x7FFFFFFFFFFFFFFELL, 0x7FFFFFFFFFFFFFFDLL> R2;
STATIC_ASSERT(boost::ratio_less<R1, R2>::value);
}

#endif

{
typedef boost::ratio<641981, 1339063> R1;
typedef boost::ratio<1291640, 2694141LL> R2;
Expand Down

0 comments on commit d0fcf52

Please sign in to comment.