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

Method test_solo_w_flatten

numpy/lib/tests/test_recfunctions.py:473–482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

471 assert_equal(test, z)
472
473 def test_solo_w_flatten(self):
474 # Test merge_arrays on a single array w & w/o flattening
475 w = self._create_arrays()[0]
476 test = merge_arrays(w, flatten=False)
477 assert_equal(test, w)
478
479 test = merge_arrays(w, flatten=True)
480 control = np.array([(1, 2, 3.0), (4, 5, 6.0)],
481 dtype=[('a', int), ('ba', float), ('bb', int)])
482 assert_equal(test, control)
483
484 def test_standard(self):
485 # Test standard & standard

Callers

nothing calls this directly

Calls 3

_create_arraysMethod · 0.95
merge_arraysFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected