Skip to content

Commit

Permalink
skip tests on windows that rely on \ being a valid path char
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 15, 2022
1 parent fc44f5f commit 8c3f5f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module.exports = [
['a****c**?**??*****', ['abcdecdhjk'], null, ['abcdecdhjk']],
['[-abc]', ['-'], null, ['-']],
['[abc-]', ['-'], null, ['-']],
['\\', ['\\'], null, ['\\']],
['[\\\\]', ['\\'], null, ['\\']],
['\\', ['\\'], null, ['\\'], { skip: process.platform === 'win32' }],
['[\\\\]', ['\\'], null, ['\\'], { skip: process.platform === 'win32' }],
['[[]', ['['], null, ['[']],
['[', ['['], null, ['[']],
['[*', ['[abc'], null, ['[abc']],
Expand Down Expand Up @@ -175,7 +175,8 @@ module.exports = [
'+(a|*\\|c\\\\|d\\\\\\|e\\\\\\\\|f\\\\\\\\\\|g',
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g'],
{},
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g', 'a', 'b\\c']
['+(a|b\\|c\\\\|d\\\\|e\\\\\\\\|f\\\\\\\\|g', 'a', 'b\\c'],
{skip: process.platform === 'win32'},
],

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

0 comments on commit 8c3f5f4

Please sign in to comment.