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

Function assert_iinfo_equal

numpy/core/tests/test_getlimits.py:53–57  ·  view source on GitHub ↗
(i1, i2)

Source from the content-addressed store, hash-verified

51 f'finfo instances {f1} and {f2} differ on {attr}')
52
53def assert_iinfo_equal(i1, i2):
54 # assert two iinfo instances have the same attributes
55 for attr in ('bits', 'min', 'max'):
56 assert_equal(getattr(i1, attr), getattr(i2, attr),
57 f'iinfo instances {i1} and {i2} differ on {attr}')
58
59class TestFinfo:
60 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