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

Method test_valid

numpy/core/tests/test_conversion_utils.py:87–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_checkMethod · 0.45

Tested by

no test coverage detected