MCPcopy
hub / github.com/numpy/numpy / test_concatenate_basic

Method test_concatenate_basic

numpy/ma/tests/test_core.py:236–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234 assert_equal(x, xm)
235
236 def test_concatenate_basic(self):
237 # Tests concatenations.
238 x, y, _, _, _, xm, ym, _, _, _ = self._create_data()
239 # basic concatenation
240 assert_equal(np.concatenate((x, y)), concatenate((xm, ym)))
241 assert_equal(np.concatenate((x, y)), concatenate((x, y)))
242 assert_equal(np.concatenate((x, y)), concatenate((xm, y)))
243 assert_equal(np.concatenate((x, y, x)), concatenate((x, ym, x)))
244
245 def test_concatenate_alongaxis(self):
246 # Tests concatenations.

Callers

nothing calls this directly

Calls 3

_create_dataMethod · 0.95
assert_equalFunction · 0.90
concatenateFunction · 0.90

Tested by

no test coverage detected