Commit 6feaa06f authored by Wilson Jallet's avatar Wilson Jallet 🎬
Browse files

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

parent e2ab314e
Pipeline #18407 passed with stage
in 1 minute and 45 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment