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

Method test_singlerecord

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

Source from the content-addressed store, hash-verified

558 dtype=[('A', '|S3'), ('B', float), ('C', int)])
559
560 def test_singlerecord(self):
561 (_, x, y, z) = self.data
562 test = merge_arrays((x[0], y[0], z[0]), usemask=False)
563 control = np.array([(1, 10, ('A', 1))],
564 dtype=[('f0', int),
565 ('f1', int),
566 ('f2', [('A', '|S3'), ('B', float)])])
567 assert_equal(test, control)
568
569
570class TestAppendFields:

Callers

nothing calls this directly

Calls 2

merge_arraysFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected