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

Method test_input

numpy/f2py/tests/test_character.py:80–86  ·  view source on GitHub ↗
(self, length)

Source from the content-addressed store, hash-verified

78
79 @pytest.mark.parametrize("length", length_list)
80 def test_input(self, length):
81 fsuffix = {'(*)': 'star'}.get(length, length)
82 f = getattr(self.module, self.fprefix + '_input_' + fsuffix)
83
84 a = {'1': 'a', '3': 'abc', 'star': 'abcde' * 3}[length]
85
86 assert_array_equal(f(a), np.array(list(map(ord, a)), dtype='u1'))
87
88 @pytest.mark.parametrize("length", length_list[:-1])
89 def test_output(self, length):

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
fFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected