Skip to content

Commit 03aa085

Browse files
authored
Compatibility tests: Use correct genericVerCases test case and remove invalid test case (#1440)
1 parent b2c3e70 commit 03aa085

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ Describe "PowerShell version object" {
101101
Context "Version parsing" {
102102
BeforeAll {
103103
$genericVerCases = @(
104-
@{ VerStr = '6'; Major = 6; Minor = -1; Patch = -1 }
105104
@{ VerStr = '6.1'; Major = 6; Minor = 1; Patch = -1 }
106105
@{ VerStr = '5.2.7'; Major = 5; Minor = 2; Patch = 7 }
107106
@{ VerStr = '512.2124.71'; Major = 512; Minor = 2124; Patch = 71 }
@@ -134,7 +133,7 @@ Describe "PowerShell version object" {
134133
)
135134
}
136135

137-
It "Parses version string '<VerStr>' as <Major>.<Minor>.<Patch>" -TestCases $semVerCases {
136+
It "Parses version string '<VerStr>' as <Major>.<Minor>.<Patch>" -TestCases $genericVerCases {
138137
param([string]$VerStr, [int]$Major, [int]$Minor, [int]$Patch)
139138

140139
$v = [Microsoft.PowerShell.CrossCompatibility.PowerShellVersion]$VerStr

0 commit comments

Comments
 (0)