From 0cb4ce54ef39b629937b0a80b887da9208264298 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 27 Jan 2004 21:24:20 +0000 Subject: [PATCH] No need to test things not related to zip_iterator [SVN r22012] --- test/zip_iterator_test.cpp | 80 -------------------------------------- 1 file changed, 80 deletions(-) diff --git a/test/zip_iterator_test.cpp b/test/zip_iterator_test.cpp index 274f7ac..9561f83 100755 --- a/test/zip_iterator_test.cpp +++ b/test/zip_iterator_test.cpp @@ -82,86 +82,6 @@ int main( void ) size_t num_successful_tests = 0; size_t num_failed_tests = 0; - ///////////////////////////////////////////////////////////////////////////// - // - // Make sure tuples are supported - // - ///////////////////////////////////////////////////////////////////////////// - - std::cout << "Basic tuple support: " - << std::flush; - - typedef boost::tuples::tuple mytuple; - mytuple t1; - boost::tuples::get<0>(t1) = 42; - boost::tuples::get<1>(t1) = 42.1; - - if( 2 == boost::tuples::length::value && - 42 == boost::tuples::get<0>(t1) && - 42.1 == boost::tuples::get<1>(t1) - ) - { - ++num_successful_tests; - std::cout << "OK" << std::endl; - } - else - { - ++num_failed_tests = 0; - std::cout << "not OK" << std::endl; - } - - ///////////////////////////////////////////////////////////////////////////// - // - // Make sure iterator adaptor is supported - // - ///////////////////////////////////////////////////////////////////////////// - - std::cout << "Basic iterator adaptor support: " - << std::flush; - - std::set s; - s.insert(42); - s.insert(43); - s.insert(44); - - typedef boost::transform_iterator< - std::binder1st >, - std::set::iterator - > - add_seven_iterator; - - typedef boost::transform_iterator< - std::binder1st >, - std::set::const_iterator - > - const_add_seven_iterator; - - add_seven_iterator set_run(s.begin(), std::bind1st(std::plus(), 7)); - add_seven_iterator set_end(s.end(), std::bind1st(std::plus(), 7)); - - const_add_seven_iterator const_set_run(s.begin(), std::bind1st(std::plus(), 7)); -// set_run = const_set_run; // Error: can't convert from const to non-const - const_set_run = set_run; - - if( 49 == *set_run && - 50 == *++set_run && - 51 == *++set_run && - set_end == ++set_run && - 49 == *const_set_run && - 50 == *++const_set_run && - 51 == *++const_set_run && - set_end == ++const_set_run - ) - { - ++num_successful_tests; - std::cout << "OK" << std::endl; - } - else - { - ++num_failed_tests = 0; - std::cout << "not OK" << std::endl; - } - ///////////////////////////////////////////////////////////////////////////// // // Zip iterator construction and dereferencing