From 938012a9f42761836d5240ab8efacbeeaf3385b2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 24 Jan 2019 14:05:32 +0100 Subject: Fix order of CPPUNIT_ASSERT_EQUAL expected vs. actual arguments Change-Id: I36ea52e6ef7142566d4155c5279f791d4cf509a1 Reviewed-on: https://gerrit.libreoffice.org/66867 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sccomp/qa/unit/SwarmSolverTest.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sccomp/qa') diff --git a/sccomp/qa/unit/SwarmSolverTest.cxx b/sccomp/qa/unit/SwarmSolverTest.cxx index 2f0e6d48104b..b7bd3025373e 100644 --- a/sccomp/qa/unit/SwarmSolverTest.cxx +++ b/sccomp/qa/unit/SwarmSolverTest.cxx @@ -102,7 +102,7 @@ void SwarmSolverTest::testUnconstrained() CPPUNIT_ASSERT(xSolver->getSuccess()); uno::Sequence aSolution = xSolver->getSolution(); - CPPUNIT_ASSERT_EQUAL(aSolution.getLength(), aVariables.getLength()); + CPPUNIT_ASSERT_EQUAL(aVariables.getLength(), aSolution.getLength()); // It happens that the unconstrained test does not find a solution in the // timeframe or number of generations it has available as the search space is // too big and the values might not converge to solution. So for now just run @@ -161,7 +161,7 @@ void SwarmSolverTest::testVariableBounded() CPPUNIT_ASSERT(xSolver->getSuccess()); uno::Sequence aSolution = xSolver->getSolution(); - CPPUNIT_ASSERT_EQUAL(aSolution.getLength(), aVariables.getLength()); + CPPUNIT_ASSERT_EQUAL(aVariables.getLength(), aSolution.getLength()); CPPUNIT_ASSERT_DOUBLES_EQUAL(3.0, aSolution[0], 1E-5); } @@ -219,7 +219,7 @@ void SwarmSolverTest::testVariableConstrained() CPPUNIT_ASSERT(xSolver->getSuccess()); uno::Sequence aSolution = xSolver->getSolution(); - CPPUNIT_ASSERT_EQUAL(aSolution.getLength(), aVariables.getLength()); + CPPUNIT_ASSERT_EQUAL(aVariables.getLength(), aSolution.getLength()); CPPUNIT_ASSERT_DOUBLES_EQUAL(-0.741657, aSolution[0], 1E-5); } -- cgit