MCPcopy
hub / github.com/numpy/numpy / test_empty

Method test_empty

numpy/linalg/tests/test_linalg.py:1342–1345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1340class _TestNormGeneral(_TestNormBase):
1341
1342 def test_empty(self):
1343 assert_equal(norm([]), 0.0)
1344 assert_equal(norm(array([], dtype=self.dt)), 0.0)
1345 assert_equal(norm(atleast_2d(array([], dtype=self.dt))), 0.0)
1346
1347 def test_vector_return_type(self):
1348 a = np.array([1, 0, 1])

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
normFunction · 0.90
arrayFunction · 0.90
atleast_2dFunction · 0.90

Tested by

no test coverage detected