(self, itype)
| 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]: |