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 Sep 11, 2018
1 parent 4771137 commit 84d0a7e
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 @@ -953,9 +953,7 @@ TEST_CASE( "hdf5_dtype_test", "[serial][hdf5]" )
REQUIRE(getCast< uint64_t >(s.getAttribute("uint64")) == 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 @@ -967,9 +965,7 @@ TEST_CASE( "hdf5_dtype_test", "[serial][hdf5]" )
REQUIRE(getCast< std::vector< uint64_t > >(s.getAttribute("vecUint64")) == 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 @@ -1482,9 +1478,7 @@ TEST_CASE( "adios1_dtype_test", "[serial][adios1]" )
REQUIRE(getCast<uint64_t>(s.getAttribute("uint64")) == 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 @@ -1496,9 +1490,7 @@ TEST_CASE( "adios1_dtype_test", "[serial][adios1]" )
REQUIRE(getCast< std::vector< uint64_t > >(s.getAttribute("vecUint64")) == 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< unsigned char >() == static_cast< unsigned char >(true));
}
Expand Down

0 comments on commit 84d0a7e

Please sign in to comment.