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

Method test_pass_through

numpy/lib/tests/test_arraypad.py:81–87  ·  view source on GitHub ↗

Test if `x` already matching desired output are passed through.

(self)

Source from the content-addressed store, hash-verified

79 )
80
81 def test_pass_through(self):
82 """Test if `x` already matching desired output are passed through."""
83 expected = np.arange(12).reshape((6, 2))
84 assert_equal(
85 _as_pairs(expected, 6),
86 expected
87 )
88
89 def test_as_index(self):
90 """Test results if `as_index=True`."""

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
_as_pairsFunction · 0.90
reshapeMethod · 0.80

Tested by

no test coverage detected