(self, itype)
| 191 | |
| 192 | @pytest.mark.parametrize("itype", np.sctypes['int']+np.sctypes['uint']) |
| 193 | def test_small(self, itype): |
| 194 | for a in range(max(np.iinfo(itype).min, 0), 128): |
| 195 | msg = f"Smoke test for {itype}({a}).bit_count()" |
| 196 | assert itype(a).bit_count() == bin(a).count("1"), msg |
| 197 | |
| 198 | def test_bit_count(self): |
| 199 | for exp in [10, 17, 63]: |