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

Method test_leftouter_join

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

Source from the content-addressed store, hash-verified

873 assert_equal(test, control)
874
875 def test_leftouter_join(self):
876 a, b = self._create_arrays()
877 test = join_by(('a', 'b'), a, b, 'leftouter')
878 control = ma.array([(0, 50, 100, -1), (1, 51, 101, -1),
879 (2, 52, 102, -1), (3, 53, 103, -1),
880 (4, 54, 104, -1), (5, 55, 105, -1),
881 (6, 56, 106, -1), (7, 57, 107, -1),
882 (8, 58, 108, -1), (9, 59, 109, -1)],
883 mask=[(0, 0, 0, 1), (0, 0, 0, 1),
884 (0, 0, 0, 1), (0, 0, 0, 1),
885 (0, 0, 0, 1), (0, 0, 0, 1),
886 (0, 0, 0, 1), (0, 0, 0, 1),
887 (0, 0, 0, 1), (0, 0, 0, 1)],
888 dtype=[('a', int), ('b', int), ('c', int), ('d', int)])
889 assert_equal(test, control)
890
891 def test_different_field_order(self):
892 # gh-8940

Callers

nothing calls this directly

Calls 3

_create_arraysMethod · 0.95
join_byFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected