MCPcopy
hub / github.com/numpy/numpy / assert_state_equal

Function assert_state_equal

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

Source from the content-addressed store, hash-verified

48
49
50def assert_state_equal(actual, target):
51 for key in actual:
52 if isinstance(actual[key], dict):
53 assert_state_equal(actual[key], target[key])
54 elif isinstance(actual[key], np.ndarray):
55 assert_array_equal(actual[key], target[key])
56 else:
57 assert actual[key] == target[key]
58
59
60def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…