From 5ba5a3c63bd1de4b7fefdd589d03484d73794f16 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 21 Oct 2014 22:24:01 +0400 Subject: [PATCH] fix typo in queue test --- tests/test-hdr/queue/hdr_queue.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-hdr/queue/hdr_queue.h b/tests/test-hdr/queue/hdr_queue.h index dcbabc1f..68e99904 100644 --- a/tests/test-hdr/queue/hdr_queue.h +++ b/tests/test-hdr/queue/hdr_queue.h @@ -217,8 +217,8 @@ namespace queue { int n = -1; CPPUNIT_CHECK( q.pop(n) ); CPPUNIT_CHECK( n == 0 ); - CPPUNIT_ASSERT( q.push( static_cast(nCapacity) ) ); - CPPUNIT_ASSERT( !q.push( static_cast(nCapacity) ) ); + CPPUNIT_ASSERT( q.push( static_cast(nCapacity) ) ); + CPPUNIT_ASSERT( !q.push( static_cast(nCapacity) ) ); } template @@ -236,13 +236,13 @@ namespace queue { // The queue is full CPPUNIT_CHECK( !q.empty() ); CPPUNIT_CHECK( q.size() == nCapacity ); - CPPUNIT_ASSERT( !q.push_with( [nCapacity]( int& itm ) { itm = static_cast(nCapacity); } ) ); + CPPUNIT_ASSERT( !q.push_with( [nCapacity]( int& itm ) { itm = static_cast(nCapacity); } )); int n = -1; CPPUNIT_CHECK( q.pop( n ) ); CPPUNIT_CHECK( n == 0 ); - CPPUNIT_ASSERT( q.push( static_cast(nCapacity) ) ); + CPPUNIT_ASSERT( q.push( static_cast(nCapacity) ) ); CPPUNIT_CHECK( q.size() == nCapacity ); - CPPUNIT_ASSERT( !q.push( static_cast(nCapacity) ) ); + CPPUNIT_ASSERT( !q.push( static_cast(nCapacity) ) ); CPPUNIT_CHECK( q.size() == nCapacity ); } -- 2.34.1