From ee70c66d32e900f6e793c733a4ca27a1dafb3819 Mon Sep 17 00:00:00 2001 From: Kael Zhang Date: Tue, 13 Aug 2024 09:12:24 +0800 Subject: [PATCH] test/win32: try to fix tests in win32 --- test/fixtures/cases.js | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/test/fixtures/cases.js b/test/fixtures/cases.js index f716fb5..bcf2150 100644 --- a/test/fixtures/cases.js +++ b/test/fixtures/cases.js @@ -23,19 +23,6 @@ const cases = [ // ], ///////////////////////////////////////////////////////////////////// [ - '#130: consequent escaped backslashes with whitespaces', - [ - 'a\\\\ ', - 'a\\\\ b', - 'a\\\\\\ b' - ], - { - 'a\\': 1, - 'a\\ b': 1, - 'a\\\\ b': 0, - 'a\\\\\\ b': 0 - } - ], [ '#108: gitignore rules with BOM', [ readPatterns('.gitignore-with-BOM'), @@ -969,6 +956,20 @@ const cases = [ const IS_WINDOWS = process.platform === 'win32' if (!IS_WINDOWS && !process.env.IGNORE_TEST_WIN32) { cases.push( + [ + '#130: consequent escaped backslashes with whitespaces', + [ + 'a\\\\ ', + 'a\\\\ b', + 'a\\\\\\ b' + ], + { + 'a\\': 1, + 'a\\ b': 1, + 'a\\\\ b': 0, + 'a\\\\\\ b': 0 + } + ], [ '#81: invalid trailing backslash at the end should not throw, test non-windows env only', [