Skip to content

Commit

Permalink
test/win32: try to fix tests in win32
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Aug 13, 2024
1 parent dea7b73 commit ee70c66
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions test/fixtures/cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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',
[
Expand Down

0 comments on commit ee70c66

Please sign in to comment.