Skip to content

Commit

Permalink
SerialTest: MSVC long double read
Browse files Browse the repository at this point in the history
Enable the read of `long double` attributes on MSVC again.
  • Loading branch information
ax3l committed May 19, 2018
1 parent 2a9a1da commit bece519
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,7 @@ TEST_CASE( "hdf5_dtype_test", "[serial][hdf5]" )
REQUIRE(s.getAttribute("uint64").get< uint64_t >() == 64u);
REQUIRE(s.getAttribute("float").get< float >() == 16.e10f);
REQUIRE(s.getAttribute("double").get< double >() == 1.e64);
#if !defined(_MSC_VER)
REQUIRE(s.getAttribute("longdouble").get< long double >() == 1.e80L);
#endif
REQUIRE(s.getAttribute("string").get< std::string >() == "string");
REQUIRE(s.getAttribute("vecChar").get< std::vector< char > >() == std::vector< char >({'c', 'h', 'a', 'r'}));
REQUIRE(s.getAttribute("vecInt16").get< std::vector< int16_t > >() == std::vector< int16_t >({32766, 32767}));
Expand All @@ -864,9 +862,7 @@ TEST_CASE( "hdf5_dtype_test", "[serial][hdf5]" )
REQUIRE(s.getAttribute("vecUint64").get< std::vector< uint64_t > >() == std::vector< uint64_t >({18446744073709551614u, 18446744073709551615u}));
REQUIRE(s.getAttribute("vecFloat").get< std::vector< float > >() == std::vector< float >({0.f, 3.40282e+38f}));
REQUIRE(s.getAttribute("vecDouble").get< std::vector< double > >() == std::vector< double >({0., 1.79769e+308}));
#if !defined(_MSC_VER)
REQUIRE(s.getAttribute("vecLongdouble").get< std::vector< long double > >() == std::vector< long double >({0.L, std::numeric_limits<long double>::max()}));
#endif
REQUIRE(s.getAttribute("vecString").get< std::vector< std::string > >() == std::vector< std::string >({"vector", "of", "strings"}));
REQUIRE(s.getAttribute("bool").get< bool >() == true);
}
Expand Down Expand Up @@ -1176,9 +1172,7 @@ TEST_CASE( "adios1_dtype_test", "[serial][adios1]" )
REQUIRE(s.getAttribute("uint64").get< uint64_t >() == 64u);
REQUIRE(s.getAttribute("float").get< float >() == 16.e10f);
REQUIRE(s.getAttribute("double").get< double >() == 1.e64);
#if !defined(_MSC_VER)
REQUIRE(s.getAttribute("longdouble").get< long double >() == 1.e80L);
#endif
REQUIRE(s.getAttribute("string").get< std::string >() == "string");
REQUIRE(s.getAttribute("vecChar").get< std::vector< char > >() == std::vector< char >({'c', 'h', 'a', 'r'}));
REQUIRE(s.getAttribute("vecInt16").get< std::vector< int16_t > >() == std::vector< int16_t >({32766, 32767}));
Expand All @@ -1190,9 +1184,7 @@ TEST_CASE( "adios1_dtype_test", "[serial][adios1]" )
REQUIRE(s.getAttribute("vecUint64").get< std::vector< uint64_t > >() == std::vector< uint64_t >({18446744073709551614u, 18446744073709551615u}));
REQUIRE(s.getAttribute("vecFloat").get< std::vector< float > >() == std::vector< float >({0.f, 3.40282e+38f}));
REQUIRE(s.getAttribute("vecDouble").get< std::vector< double > >() == std::vector< double >({0., 1.79769e+308}));
#if !defined(_MSC_VER)
REQUIRE(s.getAttribute("vecLongdouble").get< std::vector< long double > >() == std::vector< long double >({0.L, std::numeric_limits<long double>::max()}));
#endif
REQUIRE(s.getAttribute("vecString").get< std::vector< std::string > >() == std::vector< std::string >({"vector", "of", "strings"}));
REQUIRE(s.getAttribute("bool").get< uint8_t >() == static_cast< uint8_t >(true));
}
Expand Down

0 comments on commit bece519

Please sign in to comment.