From 8c3f5f4028be881710d2439da4f87d0f61cd8074 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 15 Feb 2022 08:59:24 -0800 Subject: [PATCH] skip tests on windows that rely on \ being a valid path char --- test/patterns.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/patterns.js b/test/patterns.js index 37d1f202..2282bcb1 100644 --- a/test/patterns.js +++ b/test/patterns.js @@ -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']], @@ -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.