Skip to content

Commit

Permalink
Update time_test to get around a boost 1.60 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Jul 2, 2020
1 parent 210e816 commit 82e3944
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/time_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ BOOST_AUTO_TEST_CASE(time_point_sec_test)
BOOST_CHECK_EQUAL( "20380119T031407", tp2gm1.to_non_delimited_iso_string() );

time_point_sec tp2g(0x80000000U);
BOOST_CHECK_EQUAL( "2038-01-19T03:14:08", tp2g.to_iso_string() );
BOOST_CHECK_EQUAL( "20380119T031408", tp2g.to_non_delimited_iso_string() );
if (BOOST_VERSION != BOOST_VERSION_NUMBER(1,60,0)) {
BOOST_CHECK_EQUAL( "2038-01-19T03:14:08", tp2g.to_iso_string() );
BOOST_CHECK_EQUAL( "20380119T031408", tp2g.to_non_delimited_iso_string() );
}

time_point_sec tp3g(0xc0000000U);
if (BOOST_VERSION >= BOOST_VERSION_NUMBER(1,64,0)) {
Expand Down

0 comments on commit 82e3944

Please sign in to comment.