[Windows] Refactor test helpers (#8889)

This commit is contained in:
Vasilii Polikarpov
2023-11-27 11:37:49 +01:00
committed by GitHub
parent 79c347765a
commit 9492109c62
5 changed files with 96 additions and 81 deletions

View File

@@ -33,11 +33,11 @@ Describe "Haskell" {
}
It "GHC <ghcVersion> is installed" -TestCases $ghcTestCases {
"$binGhcPath --version" | Should -MatchCommandOutput $ghcShortVersion
"$binGhcPath --version" | Should -OutputTextMatchingRegex $ghcShortVersion
}
It "GHC <defaultGhcVersion> is the default version and should be the latest installed" -TestCases $ghcDefaultCases {
"ghc --version" | Should -MatchCommandOutput $defaultGhcShortVersion
"ghc --version" | Should -OutputTextMatchingRegex $defaultGhcShortVersion
}
It "Cabal is installed" {