Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_cpuawkward_new_Identities64_1():
- toptr = [123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123]
- toptr = (ctypes.c_int64*len(toptr))(*toptr)
- length = 3
- funcC = getattr(lib, 'awkward_new_Identities64')
- funcC.restype = Error
- funcC.argtypes = (ctypes.POINTER(ctypes.c_int64), ctypes.c_int64)
- ret_pass = funcC(toptr, length)
- pytest_toptr = [0, 1, 2]
- assert toptr[:len(pytest_toptr)] == pytest.approx(pytest_toptr)
- assert not ret_pass.str
Advertisement
Add Comment
Please, Sign In to add comment