[mlpack-git] master: Minor style fixes for ind2sub() test. (83d5850)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Jun 7 16:52:17 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/b29bad9f77af89306ba48fb918c7772b72f19eac...83d5850e687b4d785e6542ecf7002c460bc2e682
>---------------------------------------------------------------
commit 83d5850e687b4d785e6542ecf7002c460bc2e682
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Jun 7 16:52:17 2016 -0400
Minor style fixes for ind2sub() test.
>---------------------------------------------------------------
83d5850e687b4d785e6542ecf7002c460bc2e682
src/mlpack/tests/ind2sub_test.cpp | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/tests/ind2sub_test.cpp b/src/mlpack/tests/ind2sub_test.cpp
index aaf1e78..ef1014b 100644
--- a/src/mlpack/tests/ind2sub_test.cpp
+++ b/src/mlpack/tests/ind2sub_test.cpp
@@ -1,7 +1,14 @@
+/**
+ * @file ind2sub_test.cpp
+ * @author Nilay Jain
+ *
+ * Test the backported Armadillo ind2sub() and sub2ind() functions.
+ */
#include <mlpack/core.hpp>
#include <boost/test/unit_test.hpp>
#include "old_boost_test_definitions.hpp"
-BOOST_AUTO_TEST_SUITE(ind2sub_test);
+
+BOOST_AUTO_TEST_SUITE(ind2subTest);
/**
* This test checks whether ind2sub and sub2ind are
@@ -19,5 +26,5 @@ BOOST_AUTO_TEST_CASE(ind2sub_test)
index = arma::sub2ind(arma::size(A), u(0), u(1));
BOOST_REQUIRE_EQUAL(index, u(0) + u(1) * A.n_rows);
}
-BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_SUITE_END();
More information about the mlpack-git
mailing list