From d4f4a65c52ea303adf924320f8c312f80dbbf9c3 Mon Sep 17 00:00:00 2001 From: khizmax Date: Fri, 3 Oct 2014 18:19:49 +0400 Subject: [PATCH] add test for TreiberStack::pop_with() --- tests/test-hdr/stack/hdr_treiber_stack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-hdr/stack/hdr_treiber_stack.h b/tests/test-hdr/stack/hdr_treiber_stack.h index 33e43b76..3767be71 100644 --- a/tests/test-hdr/stack/hdr_treiber_stack.h +++ b/tests/test-hdr/stack/hdr_treiber_stack.h @@ -38,7 +38,7 @@ namespace stack { CPPUNIT_ASSERT( stack.pop(v) ); CPPUNIT_ASSERT( v == 3 ); CPPUNIT_ASSERT( !stack.empty() ); - CPPUNIT_ASSERT( stack.pop(v) ); + CPPUNIT_ASSERT( stack.pop_with( [&v]( value_type& src ) { v = src; } ); CPPUNIT_ASSERT( v == 2 ); CPPUNIT_ASSERT( !stack.empty() ); CPPUNIT_ASSERT( stack.pop(v) ); -- 2.34.1