MCPcopy
hub / github.com/numpy/numpy / test_small

Method test_small

numpy/_core/tests/test_scalar_methods.py:204–207  ·  view source on GitHub ↗
(self, itype)

Source from the content-addressed store, hash-verified

202
203 @pytest.mark.parametrize("itype", sctypes['int'] + sctypes['uint'])
204 def test_small(self, itype):
205 for a in range(max(np.iinfo(itype).min, 0), 128):
206 msg = f"Smoke test for {itype}({a}).bit_count()"
207 assert itype(a).bit_count() == a.bit_count(), msg
208
209 def test_bit_count(self):
210 for exp in [10, 17, 63]:

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected