fix typo in queue test
authorkhizmax <libcds.dev@gmail.com>
Tue, 21 Oct 2014 18:24:01 +0000 (22:24 +0400)
committerkhizmax <libcds.dev@gmail.com>
Tue, 21 Oct 2014 18:24:01 +0000 (22:24 +0400)
tests/test-hdr/queue/hdr_queue.h

index dcbabc1fb8588ae4da481782fc7d07a2e85ae150..68e99904bfa061e21ab83d975ce508c0d9ded3d3 100644 (file)
@@ -217,8 +217,8 @@ namespace queue {
             int n = -1;
             CPPUNIT_CHECK( q.pop(n) );
             CPPUNIT_CHECK( n == 0 );
-            CPPUNIT_ASSERT( q.push( static_cast<it>(nCapacity) ) );
-            CPPUNIT_ASSERT( !q.push( static_cast<it>(nCapacity) ) );
+            CPPUNIT_ASSERT( q.push( static_cast<int>(nCapacity) ) );
+            CPPUNIT_ASSERT( !q.push( static_cast<int>(nCapacity) ) );
         }
 
         template <class Queue>
@@ -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<it>(nCapacity); } ) );
+            CPPUNIT_ASSERT( !q.push_with( [nCapacity]( int& itm ) { itm = static_cast<int>(nCapacity); } ));
             int n = -1;
             CPPUNIT_CHECK( q.pop( n ) );
             CPPUNIT_CHECK( n == 0 );
-            CPPUNIT_ASSERT( q.push( static_cast<it>(nCapacity) ) );
+            CPPUNIT_ASSERT( q.push( static_cast<int>(nCapacity) ) );
             CPPUNIT_CHECK( q.size() == nCapacity );
-            CPPUNIT_ASSERT( !q.push( static_cast<it>(nCapacity) ) );
+            CPPUNIT_ASSERT( !q.push( static_cast<int>(nCapacity) ) );
             CPPUNIT_CHECK( q.size() == nCapacity );
         }