From 6feaa06f5e399bb52b5b5a94e6cfe67a76314a06 Mon Sep 17 00:00:00 2001
From: ManifoldFR <wilson.jallet@polytechnique.org>
Date: Tue, 19 Apr 2022 19:00:02 +0200
Subject: [PATCH] unittest: call from C++ puts arange() inside of block

---
 unittest/python/test_eigen_ref.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/unittest/python/test_eigen_ref.py b/unittest/python/test_eigen_ref.py
index b69b937..0434cca 100644
--- a/unittest/python/test_eigen_ref.py
+++ b/unittest/python/test_eigen_ref.py
@@ -52,12 +52,13 @@ def test(mat):
             super().__init__()
 
         def call(self, mat):
-            mat[:, :] = 1.0
+            n, m = mat.shape
+            mat[:, :] = np.arange(n * m).reshape(n, m)
 
     modify = ModifyBlockImpl()
     modify.modify(2, 3)
     Jref = np.zeros((10, 10))
-    Jref[:2, :3] = 1.0
+    Jref[:2, :3] = np.arange(6).reshape(2, 3)
 
     assert np.array_equal(Jref, modify.J)
 
-- 
GitLab