mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-22 03:22:24 +00:00
large seek offset support
[SVN r28227]
This commit is contained in:
@@ -4,10 +4,9 @@
|
||||
|
||||
// See http://www.boost.org/libs/iostreams for documentation.
|
||||
|
||||
#include <limits>
|
||||
//#include <boost/limits.hpp>
|
||||
#include <boost/iostreams/detail/ios.hpp>
|
||||
#include <boost/iostreams/positioning.hpp>
|
||||
#include <boost/integer_traits.hpp>
|
||||
#include <boost/test/test_tools.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
@@ -18,15 +17,15 @@ using namespace boost;
|
||||
using namespace boost::iostreams;
|
||||
using boost::unit_test::test_suite;
|
||||
|
||||
void extrema_test_test()
|
||||
{
|
||||
stream_offset minoff = numeric_limits<stream_offset>::min();
|
||||
stream_offset maxoff = numeric_limits<stream_offset>::max();
|
||||
|
||||
BOOST_CHECK(minoff == position_to_offset(offset_to_position(minoff)));
|
||||
BOOST_CHECK(0 == position_to_offset(offset_to_position(0)));
|
||||
BOOST_CHECK(maxoff == position_to_offset(offset_to_position(maxoff)));
|
||||
}
|
||||
//void extrema_test_test()
|
||||
//{
|
||||
// stream_offset minoff = integer_traits<stream_offset>::const_min;
|
||||
// stream_offset maxoff = integer_traits<stream_offset>::const_max;
|
||||
//
|
||||
// BOOST_CHECK(minoff == position_to_offset(offset_to_position(minoff)));
|
||||
// BOOST_CHECK(0 == position_to_offset(offset_to_position(0)));
|
||||
// BOOST_CHECK(maxoff == position_to_offset(offset_to_position(maxoff)));
|
||||
//}
|
||||
|
||||
void large_file_test()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user