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

Method test_empty

numpy/lib/tests/test_shape_base.py:772–778  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

770 assert_equal(a, np.arange(5))
771
772 def test_empty(self):
773 a = np.array([[[]]])
774 b = np.array([[], []])
775 c = tile(b, 2).shape
776 d = tile(a, (3, 2, 5)).shape
777 assert_equal(c, (2, 0))
778 assert_equal(d, (3, 2, 0))
779
780 def test_kroncompare(self):
781 from numpy.random import randint

Callers

nothing calls this directly

Calls 2

tileFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected