From b21473c521fb8d3dfe0d8d7390cbe0e374979b3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Thu, 23 Jun 2022 02:17:47 +0200
Subject: [PATCH] Vector constructors compatible eigen 3.3.7

---
 test/gtest_factory_state_block.cpp | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/test/gtest_factory_state_block.cpp b/test/gtest_factory_state_block.cpp
index 6e0316e04..fd90e69a5 100644
--- a/test/gtest_factory_state_block.cpp
+++ b/test/gtest_factory_state_block.cpp
@@ -239,16 +239,16 @@ TEST(FactoryStateBlock, creator_V)
 
 TEST(FactoryStateBlock, creator_Params)
 {
-    auto sb1  = FactoryStateBlock::create("StateParams1", Eigen::Vector1d(1), false);
-    auto sb2  = FactoryStateBlock::create("StateParams2", Eigen::Vector2d(1, 2), false);
-    auto sb3  = FactoryStateBlock::create("StateParams3", Eigen::Vector3d(1, 2, 3), false);
-    auto sb4  = FactoryStateBlock::create("StateParams4", Eigen::Vector4d(1, 2, 3, 4), false);
-    auto sb5  = FactoryStateBlock::create("StateParams5", Eigen::Vector5d(1, 2, 3, 4, 5), false);
-    auto sb6  = FactoryStateBlock::create("StateParams6", Eigen::Vector6d(1, 2, 3, 4, 5, 6), false);
-    auto sb7  = FactoryStateBlock::create("StateParams7", Eigen::Vector7d(1, 2, 3, 4, 5, 6, 7), false);
-    auto sb8  = FactoryStateBlock::create("StateParams8", Eigen::Vector8d(1, 2, 3, 4, 5, 6, 7, 8), false);
-    auto sb9  = FactoryStateBlock::create("StateParams9", Eigen::Vector9d(1, 2, 3, 4, 5, 6, 7, 8, 9), false);
-    auto sb10 = FactoryStateBlock::create("StateParams10", Eigen::Vector10d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), false);
+    auto sb1  = FactoryStateBlock::create("StateParams1", Eigen::Vector1d::Ones(), false);
+    auto sb2  = FactoryStateBlock::create("StateParams2", Eigen::Vector2d::Ones(), false);
+    auto sb3  = FactoryStateBlock::create("StateParams3", Eigen::Vector3d::Ones(), false);
+    auto sb4  = FactoryStateBlock::create("StateParams4", Eigen::Vector4d::Ones(), false);
+    auto sb5  = FactoryStateBlock::create("StateParams5", Eigen::Vector5d::Ones(), false);
+    auto sb6  = FactoryStateBlock::create("StateParams6", Eigen::Vector6d::Ones(), false);
+    auto sb7  = FactoryStateBlock::create("StateParams7", Eigen::Vector7d::Ones(), false);
+    auto sb8  = FactoryStateBlock::create("StateParams8", Eigen::Vector8d::Ones(), false);
+    auto sb9  = FactoryStateBlock::create("StateParams9", Eigen::Vector9d::Ones(), false);
+    auto sb10 = FactoryStateBlock::create("StateParams10", Eigen::Vector10d::Ones(), false);
 
     ASSERT_EQ(sb1->getSize(), 1);
     ASSERT_EQ(sb2->getSize(), 2);
-- 
GitLab