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

Method test_join

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

join_byFunction · 0.90

Tested by

no test coverage detected