MCPcopy Create free account
hub / github.com/numpy/numpy / test_simple_int

Method test_simple_int

numpy/core/tests/test_numeric.py:1901–1909  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1899 assert_array_strict_equal(ac, act)
1900
1901 def test_simple_int(self):
1902 # Test native int input with scalar min/max.
1903 a = self._generate_int_data(self.nr, self.nc)
1904 a = a.astype(int)
1905 m = -2
1906 M = 4
1907 ac = self.fastclip(a, m, M)
1908 act = self.clip(a, m, M)
1909 assert_array_strict_equal(ac, act)
1910
1911 def test_array_double(self):
1912 # 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