MCPcopy Index your code
hub / github.com/numpy/numpy / test_join

Method test_join

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

Source from the content-addressed store, hash-verified

820 assert_equal(test, control)
821
822 def test_join(self):
823 a, b = self._create_arrays()
824 # Fixme, this test is broken
825 #test = join_by(('a', 'b'), a, b)
826 #control = np.array([(5, 55, 105, 100), (6, 56, 106, 101),
827 # (7, 57, 107, 102), (8, 58, 108, 103),
828 # (9, 59, 109, 104)],
829 # dtype=[('a', int), ('b', int),
830 # ('c', int), ('d', int)])
831 #assert_equal(test, control)
832 join_by(('a', 'b'), a, b)
833 np.array([(5, 55, 105, 100), (6, 56, 106, 101),
834 (7, 57, 107, 102), (8, 58, 108, 103),
835 (9, 59, 109, 104)],
836 dtype=[('a', int), ('b', int),
837 ('c', int), ('d', int)])
838
839 def test_join_subdtype(self):
840 # tests the bug in https://stackoverflow.com/q/44769632/102441

Callers

nothing calls this directly

Calls 2

_create_arraysMethod · 0.95
join_byFunction · 0.90

Tested by

no test coverage detected