Skip to content

Commit

Permalink
Removed windows workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
redboltz committed Aug 28, 2023
1 parent aa0cf15 commit 5b8edbc
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/nan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ BOOST_AUTO_TEST_CASE(unpack_float_signaling)

std::stringstream ss;
float val = std::numeric_limits<float>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::pack(ss, val);

Expand Down Expand Up @@ -104,10 +100,6 @@ BOOST_AUTO_TEST_CASE(unpack_double_signaling)

std::stringstream ss;
double val = std::numeric_limits<double>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::pack(ss, val);

Expand Down Expand Up @@ -159,10 +151,6 @@ BOOST_AUTO_TEST_CASE(object_float_signaling)
}

float val = std::numeric_limits<float>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::object obj(val);

Expand Down Expand Up @@ -199,10 +187,6 @@ BOOST_AUTO_TEST_CASE(object_double_signaling)
}

double val = std::numeric_limits<double>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::object obj(val);

Expand Down Expand Up @@ -239,10 +223,6 @@ BOOST_AUTO_TEST_CASE(object_with_zone_float_signaling)
}

float val = std::numeric_limits<float>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::zone z;
msgpack::object obj(val, z);
Expand Down Expand Up @@ -281,10 +261,6 @@ BOOST_AUTO_TEST_CASE(object_with_zone_double_signaling)
}

double val = std::numeric_limits<double>::signaling_NaN();
#if defined(_MSC_VER)
// workaround. MSVC's signaling_NaN() returns quiet_NaN().
clear_quiet(val);
#endif // defined(_MSC_VER)

msgpack::zone z;
msgpack::object obj(val, z);
Expand Down

0 comments on commit 5b8edbc

Please sign in to comment.