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

Method test_valid

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

Source from the content-addressed store, hash-verified

84 warn = False
85
86 def test_valid(self):
87 for s in ['big', '>']:
88 self._check(s, 'NPY_BIG')
89 for s in ['little', '<']:
90 self._check(s, 'NPY_LITTLE')
91 for s in ['native', '=']:
92 self._check(s, 'NPY_NATIVE')
93 for s in ['ignore', '|']:
94 self._check(s, 'NPY_IGNORE')
95 for s in ['swap']:
96 self._check(s, 'NPY_SWAP')
97
98
99class TestSortkindConverter(StringConverterTestCase):

Callers

nothing calls this directly

Calls 1

_checkMethod · 0.45

Tested by

no test coverage detected