From 21c17fda637c9ac64593e4ac76738979a6b681f7 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Wed, 10 Aug 2011 22:01:37 +0000 Subject: [PATCH] Added pop_back test for lists [SVN r73642] --- test/algorithm/pop_back.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/algorithm/pop_back.cpp b/test/algorithm/pop_back.cpp index 3bd98248..e2c16bc0 100644 --- a/test/algorithm/pop_back.cpp +++ b/test/algorithm/pop_back.cpp @@ -1,15 +1,17 @@ /*============================================================================= Copyright (c) 2001-2006 Joel de Guzman - Distributed under the Boost Software License, Version 1.0. (See accompanying + Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #include #include +#include #include #include #include #include +#include #include #include @@ -41,6 +43,12 @@ main() BOOST_TEST((boost::fusion::pop_back(mpl_vec()) == make_vector(1, 2, 3, 4))); } + { + list l(1, 2); + std::cout << pop_back(l) << std::endl; + BOOST_TEST((pop_back(l) == make_list(1))); + } + return boost::report_errors(); }