[windows] Add a test to make sure version 9 is the default one (#3377)

This commit is contained in:
Mikhail Timofeev
2021-05-14 12:20:12 +03:00
committed by GitHub
parent 15a610677b
commit a7c8d209c6

View File

@@ -36,6 +36,11 @@ Describe "Haskell" {
"ghc --version" | Should -MatchCommandOutput $defaultGhcShortVersion
}
# Sometimes choco doesn't return version 9, need to check it explicitly https://github.com/chocolatey/choco/issues/2271
It "Default GHC version is 9" -TestCases $ghcDefaultCases {
"ghc --version" | Should -MatchCommandOutput "9(\.\d+){2,}"
}
It "Cabal is installed" {
"cabal --version" | Should -ReturnZeroExitCode
}