• Home
  • Raw
  • Download

Lines Matching +full:check +full:- +full:path

23         check = self.check_match
24 check('abc', 'abc')
25 check('abc', '?*?')
26 check('abc', '???*')
27 check('abc', '*???')
28 check('abc', '???')
29 check('abc', '*')
30 check('abc', 'ab[cd]')
31 check('abc', 'ab[!de]')
32 check('abc', 'ab[de]', False)
33 check('a', '??', False)
34 check('a', 'b', False)
38 check('\\', r'[\]')
39 check('a', r'[!\]')
40 check('\\', r'[!\]', False)
44 check('foo\nbar', 'foo*')
45 check('foo\nbar\n', 'foo*')
46 check('\nfoo', 'foo*', False)
47 check('\n', '*')
50 check = self.check_match
51 check('a' * 50, '*a*a*a*a*a*a*a*a*a*a')
53 # straightforward. See bpo-40480.
54 check('a' * 50 + 'b', '*a*a*a*a*a*a*a*a*a*a', False)
63 check = self.check_match
64 check('abc', 'abc', True, fnmatchcase)
65 check('AbC', 'abc', False, fnmatchcase)
66 check('abc', 'AbC', False, fnmatchcase)
67 check('AbC', 'AbC', True, fnmatchcase)
69 check('usr/bin', 'usr/bin', True, fnmatchcase)
70 check('usr\\bin', 'usr/bin', False, fnmatchcase)
71 check('usr/bin', 'usr\\bin', False, fnmatchcase)
72 check('usr\\bin', 'usr\\bin', True, fnmatchcase)
80 ignorecase = os.path.normcase('ABC') == os.path.normcase('abc')
81 check = self.check_match
82 check('abc', 'abc')
83 check('AbC', 'abc', ignorecase)
84 check('abc', 'AbC', ignorecase)
85 check('AbC', 'AbC')
88 normsep = os.path.normcase('\\') == os.path.normcase('/')
89 check = self.check_match
90 check('usr/bin', 'usr/bin')
91 check('usr\\bin', 'usr/bin', normsep)
92 check('usr/bin', 'usr\\bin', normsep)
93 check('usr\\bin', 'usr\\bin')
96 ignorecase = os.path.normcase('ABC') == os.path.normcase('abc')
97 check = self.check_match
100 check(c, '[az]', c in 'az')
101 check(c, '[!az]', c not in 'az')
104 check(c, '[AZ]', (c in 'az') and ignorecase)
105 check(c, '[!AZ]', (c not in 'az') or not ignorecase)
107 check(c, '[az]', (c in 'AZ') and ignorecase)
108 check(c, '[!az]', (c not in 'AZ') or not ignorecase)
111 check(c, '[aa]', c == 'a')
114 check(c, '[^az]', c in '^az')
115 check(c, '[[az]', c in '[az')
116 check(c, r'[!]]', c != ']')
117 check('[', '[')
118 check('[]', '[]')
119 check('[!', '[!')
120 check('[!]', '[!]')
123 ignorecase = os.path.normcase('ABC') == os.path.normcase('abc')
124 normsep = os.path.normcase('\\') == os.path.normcase('/')
125 check = self.check_match
128 check(c, '[b-d]', c in 'bcd')
129 check(c, '[!b-d]', c not in 'bcd')
130 check(c, '[b-dx-z]', c in 'bcdxyz')
131 check(c, '[!b-dx-z]', c not in 'bcdxyz')
134 check(c, '[B-D]', (c in 'bcd') and ignorecase)
135 check(c, '[!B-D]', (c not in 'bcd') or not ignorecase)
137 check(c, '[b-d]', (c in 'BCD') and ignorecase)
138 check(c, '[!b-d]', (c not in 'BCD') or not ignorecase)
141 check(c, '[b-b]', c == 'b')
144 check(c, '[!-#]', c not in '-#')
145 check(c, '[!--.]', c not in '-.')
146 check(c, '[^-`]', c in '^_`')
148 check(c, '[[-^]', c in r'[\]^')
149 check(c, r'[\-^]', c in r'\]^')
150 check(c, '[b-]', c in '-b')
151 check(c, '[!b-]', c not in '-b')
152 check(c, '[-b]', c in '-b')
153 check(c, '[!-b]', c not in '-b')
154 check(c, '[-]', c in '-')
155 check(c, '[!-]', c not in '-')
158 check(c, '[d-b]', False)
159 check(c, '[!d-b]', True)
160 check(c, '[d-bx-z]', c in 'xyz')
161 check(c, '[!d-bx-z]', c not in 'xyz')
162 check(c, '[d-b^-`]', c in '^_`')
164 check(c, '[d-b[-^]', c in r'[\]^')
167 normsep = os.path.normcase('\\') == os.path.normcase('/')
168 check = self.check_match
169 check('/', r'[/]')
170 check('\\', r'[\]')
171 check('/', r'[\]', normsep)
172 check('\\', r'[/]', normsep)
173 check('[/]', r'[/]', False)
174 check(r'[\\]', r'[/]', False)
175 check('\\', r'[\t]')
176 check('/', r'[\t]', normsep)
177 check('t', r'[\t]')
178 check('\t', r'[\t]', False)
181 normsep = os.path.normcase('\\') == os.path.normcase('/')
182 check = self.check_match
183 check('a/b', 'a[.-0]b', not normsep)
184 check('a\\b', 'a[.-0]b', False)
185 check('a\\b', 'a[Z-^]b', not normsep)
186 check('a/b', 'a[Z-^]b', False)
188 check('a/b', 'a[/-0]b', not normsep)
189 check(r'a\b', 'a[/-0]b', False)
190 check('a[/-0]b', 'a[/-0]b', False)
191 check(r'a[\-0]b', 'a[/-0]b', False)
193 check('a/b', 'a[.-/]b')
194 check(r'a\b', 'a[.-/]b', normsep)
195 check('a[.-/]b', 'a[.-/]b', False)
196 check(r'a[.-\]b', 'a[.-/]b', False)
198 check(r'a\b', r'a[\-^]b')
199 check('a/b', r'a[\-^]b', normsep)
200 check(r'a[\-^]b', r'a[\-^]b', False)
201 check('a[/-^]b', r'a[\-^]b', False)
203 check(r'a\b', r'a[Z-\]b', not normsep)
204 check('a/b', r'a[Z-\]b', False)
205 check(r'a[Z-\]b', r'a[Z-\]b', False)
206 check('a[Z-/]b', r'a[Z-\]b', False)
211 check = self.check_match
212 check('[', '[[]')
213 check('&', '[a&&b]')
214 check('|', '[a||b]')
215 check('~', '[a~~b]')
216 check(',', '[a-z+--A-Z]')
217 check('.', '[a-z--/A-Z]')
239 # fancy translation to prevent exponential-time match failure
242 # and try pasting multiple translate results - it's an undocumented
266 ignorecase = os.path.normcase('P') == os.path.normcase('p')
273 normsep = os.path.normcase('\\') == os.path.normcase('/')