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

Method test_simple_items

numpy/testing/tests/test_utils.py:893–901  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

891 lambda: self._assert_func(x, y, significant=7))
892
893 def test_simple_items(self):
894 x = 1234.22
895 y = 1234.23
896
897 self._assert_func(x, y, significant=4)
898 self._assert_func(x, y, significant=5)
899 self._assert_func(x, y, significant=6)
900 assert_raises(AssertionError,
901 lambda: self._assert_func(x, y, significant=7))
902
903 def test_nan_array(self):
904 anan = np.array(np.nan)

Callers

nothing calls this directly

Calls 2

_assert_funcMethod · 0.95
assert_raisesFunction · 0.90

Tested by

no test coverage detected