MCPcopy Index your code
hub / github.com/python/cpython / test_sep_in_char_set

Method test_sep_in_char_set

Lib/test/test_fnmatch.py:165–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 check(c, '[d-b[-^]', c in r'[\]^')
164
165 def test_sep_in_char_set(self):
166 check = self.check_match
167 check('/', r'[/]')
168 check('\\', r'[\]')
169 check('/', r'[\]', NORMSEP)
170 check('\\', r'[/]', NORMSEP)
171 check('[/]', r'[/]', False)
172 check(r'[\\]', r'[/]', False)
173 check('\\', r'[\t]')
174 check('/', r'[\t]', NORMSEP)
175 check('t', r'[\t]')
176 check('\t', r'[\t]', False)
177
178 def test_sep_in_range(self):
179 check = self.check_match

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected