add assert MatchCommandOutput

This commit is contained in:
Aleksandr Chebotov
2020-07-13 13:37:04 +03:00
parent 51da94d189
commit 3356fa7bd0
3 changed files with 36 additions and 2 deletions

View File

@@ -17,11 +17,11 @@ Describe "Haskell" {
}
It "GHC <ghcVersion> is installed" -TestCases $ghcTestCases {
& $binGhcPath --version | Should -Match $ghcVersion
"$binGhcPath --version" | Should -MatchCommandOutput $ghcVersion
}
It "GHC <defaultGhcVersion> is the default version and should be the latest installed" -TestCases @{defaultGhcVersion = $defaultGhcVersion} {
ghc --version | Should -Match $defaultGhcVersion
"ghc --version" | Should -MatchCommandOutput $defaultGhcVersion
}
It "Cabal is installed" {