From bea144c2a8c4262eaea1d799503c838c10c94b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20J=C3=B8rgen=20Ottosen?= Date: Thu, 29 Jul 2004 14:20:35 +0000 Subject: [PATCH] *** empty log message *** [SVN r24158] --- test/algorithm_example.cpp | 7 +++++++ test/array.cpp | 16 +++++++++++----- test/iterator_pair.cpp | 7 +++++++ test/iterator_range.cpp | 8 ++++++++ test/partial_workaround.cpp | 8 ++++++++ test/reversible_range.cpp | 7 +++++++ test/std_container.cpp | 8 ++++++++ test/string.cpp | 10 +++++++++- test/sub_range.cpp | 13 +++++++++++++ 9 files changed, 78 insertions(+), 6 deletions(-) diff --git a/test/algorithm_example.cpp b/test/algorithm_example.cpp index 92b1049..43b531c 100755 --- a/test/algorithm_example.cpp +++ b/test/algorithm_example.cpp @@ -8,6 +8,13 @@ // For more information, see http://www.boost.org/libs/range/ // +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include diff --git a/test/array.cpp b/test/array.cpp index 181fddf..be78f5c 100755 --- a/test/array.cpp +++ b/test/array.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include @@ -30,7 +38,9 @@ void check_array() int my_array[sz] = { 1,2,3,4,5,6,7,8,9 }; const array_t ca = { 1,2,3,4,5,6,7,8,10 }; -#ifndef BOOST_CT_NO_STATIC_ASSERT + +// BOOST_RANGE_NO_STATIC_ASSERT +#if !defined( __BORLANDC__ ) || !( _MSC_VER <= 1300 ) BOOST_STATIC_ASSERT(( is_same< value_type_of::type, int >::value )); BOOST_STATIC_ASSERT(( is_same< iterator_of::type, int* >::value )); BOOST_STATIC_ASSERT(( is_same< const_iterator_of::type, const int* >::value )); @@ -47,18 +57,14 @@ void check_array() BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); BOOST_STATIC_ASSERT(( is_same< result_iterator_of::type, const int* >::value )); #endif - //typedef container::result_iterator iter; - //cout << typeid( iter() ).name() << endl; BOOST_CHECK_EQUAL( begin( my_array ), my_array ); BOOST_CHECK_EQUAL( end( my_array ), my_array + size( my_array ) ); BOOST_CHECK_EQUAL( empty( my_array ), false ); - //BOOST_CHECK( size( my_array ) == sizeof( sizer( my_array ) ) ); BOOST_CHECK_EQUAL( begin( ca ), ca ); BOOST_CHECK_EQUAL( end( ca ), ca + size( ca ) ); BOOST_CHECK_EQUAL( empty( ca ),false ); - //BOOST_CHECK( size( ca ) == sizeof( sizer( ca ) ) ); } diff --git a/test/iterator_pair.cpp b/test/iterator_pair.cpp index 4135dfc..f111d7e 100755 --- a/test/iterator_pair.cpp +++ b/test/iterator_pair.cpp @@ -8,6 +8,13 @@ // For more information, see http://www.boost.org/libs/range/ // +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include diff --git a/test/iterator_range.cpp b/test/iterator_range.cpp index 4088e78..cf4a725 100755 --- a/test/iterator_range.cpp +++ b/test/iterator_range.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include diff --git a/test/partial_workaround.cpp b/test/partial_workaround.cpp index faeab4d..94741d1 100755 --- a/test/partial_workaround.cpp +++ b/test/partial_workaround.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION 1 #include diff --git a/test/reversible_range.cpp b/test/reversible_range.cpp index 8a878c6..033a86f 100755 --- a/test/reversible_range.cpp +++ b/test/reversible_range.cpp @@ -9,6 +9,13 @@ // +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include diff --git a/test/std_container.cpp b/test/std_container.cpp index 75460e6..8334072 100755 --- a/test/std_container.cpp +++ b/test/std_container.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include diff --git a/test/string.cpp b/test/string.cpp index c43ea52..6b28f17 100755 --- a/test/string.cpp +++ b/test/string.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include @@ -83,7 +91,7 @@ void check_char() BOOST_CHECK_EQUAL( begin( my_string ), my_string ); const char* end2 = begin( my_string ) + size( my_string ); - const char* end3 = end( my_string ); + const char* end3 = end( my_string ); BOOST_CHECK_EQUAL( end3, end2 ); BOOST_CHECK_EQUAL( empty( my_string ), (my_string == 0 || my_string[0] == char()) ); BOOST_CHECK_EQUAL( size( my_string ), my_string_length ); diff --git a/test/sub_range.cpp b/test/sub_range.cpp index 9cb1689..513737f 100755 --- a/test/sub_range.cpp +++ b/test/sub_range.cpp @@ -8,6 +8,14 @@ // For more information, see http://www.boost.org/libs/range/ // + +#include + +#if BOOST_WORAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) +# pragma warn -8091 // supress warning in Boost.Test +# pragma warn -8057 // unused argument argc/argv in Boost.Test +#endif + #include #include #include @@ -80,6 +88,11 @@ void check_iterator_range() string res = copy_range( r ); BOOST_CHECK( equal( res.begin(), res.end(), r.begin() ) ); + r.empty(); + s.empty(); + r.size(); + s.size(); + }