MCPcopy Index your code
hub / github.com/numpy/numpy / assert_iinfo_equal

Function assert_iinfo_equal

numpy/_core/tests/test_getlimits.py:55–59  ·  view source on GitHub ↗
(i1, i2)

Source from the content-addressed store, hash-verified

53 f'finfo instances {f1} and {f2} differ on {attr}')
54
55def assert_iinfo_equal(i1, i2):
56 # assert two iinfo instances have the same attributes
57 for attr in ('bits', 'min', 'max'):
58 assert_equal(getattr(i1, attr), getattr(i2, attr),
59 f'iinfo instances {i1} and {i2} differ on {attr}')
60
61class TestFinfo:
62 def test_basic(self):

Callers 2

test_basicMethod · 0.85
test_instancesFunction · 0.85

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…