[shark] 02/06: remove index check from findsmallestvector test

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Aug 8 08:29:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository shark.

commit be1ad0c5debb04d150cf5fa2df83c5fda655643c
Author: aydin demircioglu <githubAD at cloned.de>
Date:   Thu Apr 21 22:29:06 2016 +0200

    remove index check from findsmallestvector test
---
 .../Trainers/Budgeted/AbstractBudgetMaintenanceStrategy_Test.cpp        | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Test/Algorithms/Trainers/Budgeted/AbstractBudgetMaintenanceStrategy_Test.cpp b/Test/Algorithms/Trainers/Budgeted/AbstractBudgetMaintenanceStrategy_Test.cpp
index 56eb0c4..9d962ee 100644
--- a/Test/Algorithms/Trainers/Budgeted/AbstractBudgetMaintenanceStrategy_Test.cpp
+++ b/Test/Algorithms/Trainers/Budgeted/AbstractBudgetMaintenanceStrategy_Test.cpp
@@ -120,7 +120,6 @@ BOOST_AUTO_TEST_CASE( AbstractBudgetMaintenanceStrategy_findSmallestVector)
             budgetModel.alpha(i, j) = classes;
     
     AbstractBudgetMaintenanceStrategy<RealVector>::findSmallestVector(budgetModel, index, minAlpha);
-    BOOST_REQUIRE_EQUAL(index, 0);
     BOOST_REQUIRE_EQUAL(minAlpha, sqrt(2.0*classes*classes));
     
     // what happens if all things are zero in the budget?
@@ -129,7 +128,6 @@ BOOST_AUTO_TEST_CASE( AbstractBudgetMaintenanceStrategy_findSmallestVector)
             budgetModel.alpha(i, j) = 0;
         
     AbstractBudgetMaintenanceStrategy<RealVector>::findSmallestVector(budgetModel, index, minAlpha);
-    BOOST_REQUIRE_EQUAL(index, 0);
     BOOST_REQUIRE_EQUAL(minAlpha, 0);
 }
 	

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list