[Libreoffice-commits] core.git: sccomp/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 24 20:23:50 UTC 2019
sccomp/qa/unit/SwarmSolverTest.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 938012a9f42761836d5240ab8efacbeeaf3385b2
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jan 24 14:05:32 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jan 24 21:23:24 2019 +0100
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 <sbergman at redhat.com>
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<double> 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<double> 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<double> 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);
}
More information about the Libreoffice-commits
mailing list