Skip to content

Compatibility tests: Use correct test cases object and remove invalid test case #1440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Describe "PowerShell version object" {
Context "Version parsing" {
BeforeAll {
$genericVerCases = @(
@{ VerStr = '6'; Major = 6; Minor = -1; Patch = -1 }
@{ VerStr = '6.1'; Major = 6; Minor = 1; Patch = -1 }
@{ VerStr = '5.2.7'; Major = 5; Minor = 2; Patch = 7 }
@{ VerStr = '512.2124.71'; Major = 512; Minor = 2124; Patch = 71 }
Expand Down Expand Up @@ -134,7 +133,7 @@ Describe "PowerShell version object" {
)
}

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

$v = [Microsoft.PowerShell.CrossCompatibility.PowerShellVersion]$VerStr
Expand Down