Merge pull request #15 from actions/v-mazhuk/fix-tests

Update git modules and fix tests
This commit is contained in:
MaksimZhukov
2020-09-10 11:33:52 +03:00
committed by GitHub
2 changed files with 10 additions and 4 deletions

Submodule helpers updated: 3b38e3de4c...4b0fa42d99

View File

@ -57,7 +57,9 @@ Describe "Go" {
Set-Location -Path $simpleLocation
"go run simple.go" | Should -ReturnZeroExitCode
"go build simple.go" | Should -ReturnZeroExitCode
"./simple" | Should -ReturnZeroExitCode
$compiledPackageName = "simple"
if ($IsWindows) { $compiledPackageName += ".exe" }
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
}
It "Run maps code" {
@ -65,7 +67,9 @@ Describe "Go" {
Set-Location -Path $mapsLocation
"go run maps.go" | Should -ReturnZeroExitCode
"go build maps.go" | Should -ReturnZeroExitCode
"./maps" | Should -ReturnZeroExitCode
$compiledPackageName = "maps"
if ($IsWindows) { $compiledPackageName += ".exe" }
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
}
It "Run methods code" {
@ -73,6 +77,8 @@ Describe "Go" {
Set-Location -Path $methodsLocation
"go run methods.go" | Should -ReturnZeroExitCode
"go build methods.go" | Should -ReturnZeroExitCode
"./methods" | Should -ReturnZeroExitCode
$compiledPackageName = "methods"
if ($IsWindows) { $compiledPackageName += ".exe" }
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
}
}