-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-1417) Add tests for CRLF documents
Previously the test fixtures were failing on some Windows systems due to git changing the line endings. This commit adds a new test fixture, and runs the same tests on the same content document, but each with a different line-ending (CRLF and LF).
- Loading branch information
1 parent
77da510
commit 746b2e9
Showing
4 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# These test fixtures require crlf | ||
folding-crlf.ps1 text eol=crlf | ||
|
||
# These test fixtures require lf | ||
folding-lf.ps1 text eol=lf |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
function short-func {}; | ||
<# | ||
.SYNOPSIS | ||
Displays a list of WMI Classes based upon a search criteria | ||
.EXAMPLE | ||
Get-WmiClasses -class disk -ns rootcimv2" | ||
#> | ||
function New-VSCodeCannotFold { | ||
<# | ||
.SYNOPSIS | ||
Displays a list of WMI Classes based upon a search criteria | ||
.EXAMPLE | ||
Get-WmiClasses -class disk -ns rootcimv2" | ||
#> | ||
$I = @' | ||
cannot fold | ||
'@ | ||
|
||
# this won't be folded | ||
|
||
# This should be foldable | ||
# This should be foldable | ||
# This should be foldable | ||
|
||
#region This fools the indentation folding. | ||
Write-Host "Hello" | ||
# region | ||
Write-Host "Hello" | ||
# comment1 | ||
Write-Host "Hello" | ||
#endregion | ||
Write-Host "Hello" | ||
# comment2 | ||
Write-Host "Hello" | ||
# endregion | ||
|
||
$c = { | ||
Write-Host "Hello" | ||
} | ||
|
||
# Array fools indentation folding | ||
$d = @( | ||
'element1', | ||
'elemet2' | ||
) | ||
} |