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

Method test_simple_int

numpy/_core/tests/test_numeric.py:2390–2398  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2388 assert_array_strict_equal(ac, act)
2389
2390 def test_simple_int(self):
2391 # Test native int input with scalar min/max.
2392 a = self._generate_int_data(self.nr, self.nc)
2393 a = a.astype(int)
2394 m = -2
2395 M = 4
2396 ac = self.fastclip(a, m, M)
2397 act = self.clip(a, m, M)
2398 assert_array_strict_equal(ac, act)
2399
2400 def test_array_double(self):
2401 # Test native double input with array min/max.

Callers

nothing calls this directly

Calls 5

_generate_int_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95
astypeMethod · 0.80

Tested by

no test coverage detected