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

Method test_valid

numpy/_core/tests/test_conversion_utils.py:154–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 conv = mt.run_clipmode_converter
153
154 def test_valid(self):
155 self._check('clip', 'NPY_CLIP')
156 self._check('wrap', 'NPY_WRAP')
157 self._check('raise', 'NPY_RAISE')
158
159 # integer values allowed here
160 assert self.conv(CLIP) == 'NPY_CLIP'
161 assert self.conv(WRAP) == 'NPY_WRAP'
162 assert self.conv(RAISE) == 'NPY_RAISE'
163
164
165class TestCastingConverter(StringConverterTestCase):

Callers

nothing calls this directly

Calls 1

_checkMethod · 0.45

Tested by

no test coverage detected