Skip to content

Commit da2fe05

Browse files
committed
Test fixed.
1 parent 4c77414 commit da2fe05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_compiler_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def test_memcpy_dtoh():
387387
arguments = [arg1]
388388
cfunc = CompilerFunctions()
389389
ready_arguments = cfunc.ready_argument_list(arguments)
390-
expected = np.array([0, 0, 0, 0]).astype(np.float32)
391-
assert np.all(ready_arguments.numpy != expected)
392-
cfunc.memcpy_dtoh(expected, ready_arguments)
393-
assert np.all(ready_arguments.numpy == expected)
390+
output = np.array([5, 0, 7, 0]).astype(np.int32)
391+
assert np.all(ready_arguments[0].numpy != output)
392+
cfunc.memcpy_dtoh(output, ready_arguments[0])
393+
assert np.all(ready_arguments[0].numpy == output)

0 commit comments

Comments
 (0)