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

Method test_solo_w_flatten

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

Source from the content-addressed store, hash-verified

463 assert_equal(test, z)
464
465 def test_solo_w_flatten(self):
466 # Test merge_arrays on a single array w & w/o flattening
467 w = self.data[0]
468 test = merge_arrays(w, flatten=False)
469 assert_equal(test, w)
470
471 test = merge_arrays(w, flatten=True)
472 control = np.array([(1, 2, 3.0), (4, 5, 6.0)],
473 dtype=[('a', int), ('ba', float), ('bb', int)])
474 assert_equal(test, control)
475
476 def test_standard(self):
477 # Test standard & standard

Callers

nothing calls this directly

Calls 2

merge_arraysFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected