Skip to content

Commit

Permalink
[windows] Add a test to make sure version 9 is the default one (actio…
Browse files Browse the repository at this point in the history
  • Loading branch information
miketimofeev authored May 14, 2021
1 parent 15a6106 commit a7c8d20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/win/scripts/Tests/Haskell.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a7c8d20

Please sign in to comment.