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

Method test_basic

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

Source from the content-addressed store, hash-verified

89
90class TestIinfo:
91 def test_basic(self):
92 dts = list(zip(['i1', 'i2', 'i4', 'i8',
93 'u1', 'u2', 'u4', 'u8'],
94 [np.int8, np.int16, np.int32, np.int64,
95 np.uint8, np.uint16, np.uint32, np.uint64]))
96 for dt1, dt2 in dts:
97 assert_iinfo_equal(iinfo(dt1), iinfo(dt2))
98
99 assert_raises(ValueError, iinfo, 'f4')
100
101 def test_unsigned_max(self):
102 types = np._core.sctypes['uint']

Callers

nothing calls this directly

Calls 3

iinfoClass · 0.90
assert_raisesFunction · 0.90
assert_iinfo_equalFunction · 0.85

Tested by

no test coverage detected