Add more tests to endian_reverse_test3/4

This commit is contained in:
Peter Dimov
2020-05-05 20:18:58 +03:00
parent 62091e5d0c
commit d46d2916a8
2 changed files with 22 additions and 1 deletions
+7
View File
@@ -15,7 +15,14 @@ template<class T> void test_reverse_inplace( T x )
endian_reverse_inplace( x2 );
endian_reverse_inplace( x2 );
BOOST_TEST( x == x2 );
boost::endian::native_to_little_inplace( x2 );
boost::endian::little_to_native_inplace( x2 );
BOOST_TEST( x == x2 );
boost::endian::native_to_big_inplace( x2 );
boost::endian::big_to_native_inplace( x2 );
BOOST_TEST( x == x2 );
}