We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d68bd commit d76f1adCopy full SHA for d76f1ad
Tests/Public/Convert-LineNumber.Tests.ps1
@@ -9,8 +9,10 @@ Describe "Convert-LineNumber" {
9
10
for($i=0; $i -lt 5; $i++) {
11
12
+ # I don't know why I keep trying to do this using random numbers
13
$lineNumber = Get-Random -min 2 -max $ModuleSource.Count
- while($ModuleSource[$lineNumber] -match "^\s*$|^#(END)?REGION") {
14
+ # but I have to keep avoiding the lines that don't make sense
15
+ while($ModuleSource[$lineNumber] -match "^\s*$|^#(END)?REGION|^\s*function\s") {
16
$lineNumber += 5
17
}
18
0 commit comments