diff --git a/test/buffer_test.cpp b/test/buffer_test.cpp index e12e779..711e6c3 100644 --- a/test/buffer_test.cpp +++ b/test/buffer_test.cpp @@ -210,25 +210,48 @@ namespace std::cout << "test construction and assignment complete" << std::endl; } - template + template void test_boundary_values_() { - test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); - test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); - test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); - test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); + test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); + test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); + test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); + test_buffer_type< endian_buffer >( std::numeric_limits::min(), std::numeric_limits::max() ); } void test_boundary_values() { std::cout << "test boundary values..." << std::endl; - test_boundary_values_(); - test_boundary_values_(); - test_boundary_values_(); - test_boundary_values_(); + // integer types + test_boundary_values_(); test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + test_boundary_values_(); + + // character types + + test_boundary_values_(); + +#if !defined(BOOST_NO_CXX11_CHAR16_T) + test_boundary_values_(); +#endif + +#if !defined(BOOST_NO_CXX11_CHAR32_T) + test_boundary_values_(); +#endif + + // floating-point types + + test_boundary_values_(); + test_boundary_values_(); std::cout << "test boundary values complete" << std::endl; }