Skip to content

Commit 8c3f5f4

Browse files
committed
skip tests on windows that rely on \ being a valid path char
1 parent fc44f5f commit 8c3f5f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/patterns.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ module.exports = [
8181
['a****c**?**??*****', ['abcdecdhjk'], null, ['abcdecdhjk']],
8282
['[-abc]', ['-'], null, ['-']],
8383
['[abc-]', ['-'], null, ['-']],
84-
['\\', ['\\'], null, ['\\']],
85-
['[\\\\]', ['\\'], null, ['\\']],
84+
['\\', ['\\'], null, ['\\'], { skip: process.platform === 'win32' }],
85+
['[\\\\]', ['\\'], null, ['\\'], { skip: process.platform === 'win32' }],
8686
['[[]', ['['], null, ['[']],
8787
['[', ['['], null, ['[']],
8888
['[*', ['[abc'], null, ['[abc']],
@@ -175,7 +175,8 @@ module.exports = [
175175
'+(a|*\\|c\\\\|d\\\\\\|e\\\\\\\\|f\\\\\\\\\\|g',
176176
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g'],
177177
{},
178-
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g', 'a', 'b\\c']
178+
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g', 'a', 'b\\c'],
179+
{skip: process.platform === 'win32'},
179180
],
180181

181182
// crazy nested {,,} and *(||) tests.

0 commit comments

Comments
 (0)