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

Method test_simple_0d_arrays

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

Source from the content-addressed store, hash-verified

882 assert_approx_equal(*args, **kwargs)
883
884 def test_simple_0d_arrays(self):
885 x = np.array(1234.22)
886 y = np.array(1234.23)
887
888 self._assert_func(x, y, significant=5)
889 self._assert_func(x, y, significant=6)
890 assert_raises(AssertionError,
891 lambda: self._assert_func(x, y, significant=7))
892
893 def test_simple_items(self):
894 x = 1234.22

Callers

nothing calls this directly

Calls 2

_assert_funcMethod · 0.95
assert_raisesFunction · 0.90

Tested by

no test coverage detected