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

Method test_ip_isclose

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

Source from the content-addressed store, hash-verified

2563 ]
2564
2565 def test_ip_isclose(self):
2566 self._setup()
2567 tests = self.some_close_tests
2568 results = self.some_close_results
2569 for (x, y), result in zip(tests, results):
2570 assert_array_equal(np.isclose(x, y), result)
2571
2572 def tst_all_isclose(self, x, y):
2573 assert_(np.all(np.isclose(x, y)), "%s and %s not close" % (x, y))

Callers

nothing calls this directly

Calls 2

_setupMethod · 0.95
assert_array_equalFunction · 0.90

Tested by

no test coverage detected