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

Method test_pass_through

numpy/lib/tests/test_arraypad.py:82–88  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

80 )
81
82 def test_pass_through(self):
83 """Test if `x` already matching desired output are passed through."""
84 expected = np.arange(12).reshape((6, 2))
85 assert_equal(
86 _as_pairs(expected, 6),
87 expected
88 )
89
90 def test_as_index(self):
91 """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