projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f283f28
)
add test for TreiberStack::pop_with()
author
khizmax
<khizmax@gmail.com>
Fri, 3 Oct 2014 14:19:49 +0000
(18:19 +0400)
committer
khizmax
<khizmax@gmail.com>
Fri, 3 Oct 2014 14:19:49 +0000
(18:19 +0400)
tests/test-hdr/stack/hdr_treiber_stack.h
patch
|
blob
|
history
diff --git
a/tests/test-hdr/stack/hdr_treiber_stack.h
b/tests/test-hdr/stack/hdr_treiber_stack.h
index 33e43b76fb5b23b195bc68c05d5d687e9ed4d50f..3767be718fac7a83fb0fd9b143c59376749d2c62 100644
(file)
--- 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) );