[mlpack-svn] r17028 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Aug 14 12:23:25 EDT 2014


Author: rcurtin
Date: Thu Aug 14 12:23:25 2014
New Revision: 17028

Log:
When Conrad took the patch, he stripped out a lot of compatibility between
iterators, so... take the tests depending on that functionality out.


Modified:
   mlpack/trunk/src/mlpack/tests/arma_extend_test.cpp

Modified: mlpack/trunk/src/mlpack/tests/arma_extend_test.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/tests/arma_extend_test.cpp	(original)
+++ mlpack/trunk/src/mlpack/tests/arma_extend_test.cpp	Thu Aug 14 12:23:25 2014
@@ -35,8 +35,6 @@
  * Make sure we can reshape a large matrix.
  */
 BOOST_AUTO_TEST_CASE(InplaceReshapeMatrixTest)
-{
-  arma::mat X;
   X.randu(8, 10);
   arma::mat oldX = X;
 
@@ -92,8 +90,6 @@
   } while (it != X.begin_row_col());
 
   BOOST_REQUIRE_EQUAL(count, 0);
-  // make sure it can be constructed from row_iterator
-  it = X.begin_row(0);
 }
 
 /**
@@ -140,9 +136,6 @@
   } while (it != X.begin_row_col());
 
   BOOST_REQUIRE_EQUAL(count, 0);
-
-  // Make sure it can be constructed from row_iterator.
-  it = X.begin_row(0);
 }
 
 /**
@@ -151,18 +144,18 @@
 BOOST_AUTO_TEST_CASE(MatRowColIteratorDecrementOperatorTest)
 {
   mat test = ones<mat>(5, 5);
-  
+
   mat::row_col_iterator it1 = test.begin_row_col();
   mat::row_col_iterator it2 = it1;
-  
-  // check that postfix-- does not decrement the position when position is pointing
-  // to the begining
+
+  // check that postfix-- does not decrement the position when position is
+  // pointing to the begining
   it2--;
   BOOST_REQUIRE_EQUAL(it1.row(), it2.row());
   BOOST_REQUIRE_EQUAL(it1.col(), it2.col());
-  
-  // check that prefix-- does not decrement the position when position is pointing
-  // to the begining
+
+  // check that prefix-- does not decrement the position when position is
+  // pointing to the begining
   --it2;
   BOOST_REQUIRE_EQUAL(it1.row(), it2.row());
   BOOST_REQUIRE_EQUAL(it1.col(), it2.col());



More information about the mlpack-svn mailing list