Skip to content
Snippets Groups Projects
Commit 6feaa06f authored by Wilson Jallet's avatar Wilson Jallet :clapper:
Browse files

unittest: call from C++ puts arange() inside of block

parent e2ab314e
No related branches found
No related tags found
No related merge requests found
Pipeline #18407 passed with warnings
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment