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

Method test_singlerecord

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

Source from the content-addressed store, hash-verified

564 dtype=[('A', '|S3'), ('B', float), ('C', int)])
565
566 def test_singlerecord(self):
567 _, x, y, z = self._create_arrays()
568 test = merge_arrays((x[0], y[0], z[0]), usemask=False)
569 control = np.array([(1, 10, ('A', 1))],
570 dtype=[('f0', int),
571 ('f1', int),
572 ('f2', [('A', '|S3'), ('B', float)])])
573 assert_equal(test, control)
574
575
576class TestAppendFields:

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