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

Method test_unsigned_max

numpy/_core/tests/test_getlimits.py:101–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 assert_raises(ValueError, iinfo, 'f4')
100
101 def test_unsigned_max(self):
102 types = np._core.sctypes['uint']
103 for T in types:
104 with np.errstate(over="ignore"):
105 max_calculated = T(0) - T(1)
106 assert_equal(iinfo(T).max, max_calculated)
107
108class TestRepr:
109 def test_iinfo_repr(self):

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
iinfoClass · 0.90
TClass · 0.70

Tested by

no test coverage detected