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

Method test_leftouter_join

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

join_byFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected