MCPcopy Create free account
hub / github.com/numpy/numpy / assert_state_equal

Function assert_state_equal

numpy/random/tests/test_direct.py:39–46  ·  view source on GitHub ↗
(actual, target)

Source from the content-addressed store, hash-verified

37
38
39def assert_state_equal(actual, target):
40 for key in actual:
41 if isinstance(actual[key], dict):
42 assert_state_equal(actual[key], target[key])
43 elif isinstance(actual[key], np.ndarray):
44 assert_array_equal(actual[key], target[key])
45 else:
46 assert actual[key] == target[key]
47
48
49def uint32_to_float32(u):

Callers 3

test_pickleMethod · 0.85
test_getstateMethod · 0.85
test_set_keyMethod · 0.85

Calls 1

assert_array_equalFunction · 0.90

Tested by

no test coverage detected