diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-24 14:05:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-24 21:23:24 +0100 |
commit | 938012a9f42761836d5240ab8efacbeeaf3385b2 (patch) | |
tree | 34ea5d7a371594ff57b44c4134a0a70254e7b5ac | |
parent | 2a054445f09e8ba66e7cfb9f1d598554b555772d (diff) |
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@redhat.com>
-rw-r--r-- | sccomp/qa/unit/SwarmSolverTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |