|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78334 - trunk/libs/heap/test
From: tim_at_[hidden]
Date: 2012-05-05 08:22:08
Author: timblechmann
Date: 2012-05-05 08:22:08 EDT (Sat, 05 May 2012)
New Revision: 78334
URL: http://svn.boost.org/trac/boost/changeset/78334
Log:
heap: add tests for s_handle_from_iterator
Text files modified:
trunk/libs/heap/test/mutable_heap_tests.hpp | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
Modified: trunk/libs/heap/test/mutable_heap_tests.hpp
==============================================================================
--- trunk/libs/heap/test/mutable_heap_tests.hpp (original)
+++ trunk/libs/heap/test/mutable_heap_tests.hpp 2012-05-05 08:22:08 EDT (Sat, 05 May 2012)
@@ -285,6 +285,19 @@
pri_queue_test_erase<pri_queue>();
}
+template <typename pri_queue>
+void run_mutable_heap_test_handle_from_iterator(void)
+{
+ pri_queue que;
+
+ que.push(3);
+ que.push(1);
+ que.push(4);
+
+ que.update(pri_queue::s_handle_from_iterator(que.begin()),
+ 6);
+}
+
template <typename pri_queue>
void run_mutable_heap_tests(void)
@@ -294,6 +307,7 @@
run_mutable_heap_decrease_tests<pri_queue>();
run_mutable_heap_increase_tests<pri_queue>();
run_mutable_heap_erase_tests<pri_queue>();
+ run_mutable_heap_test_handle_from_iterator<pri_queue>();
}
template <typename pri_queue>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk