Fixed TestExec
parent
4613ca7820
commit
bd889304ca
|
@ -9,12 +9,12 @@ import (
|
||||||
|
|
||||||
func TestExec(t *testing.T) {
|
func TestExec(t *testing.T) {
|
||||||
testCommand := "echo"
|
testCommand := "echo"
|
||||||
testArguments := []string{"'Hello World'"}
|
testArguments := []string{"Hello World"}
|
||||||
|
|
||||||
result := Exec("/", testCommand, testArguments)
|
result := Exec("/", testCommand, testArguments)
|
||||||
|
|
||||||
if result != "Hello World" {
|
if result != "Hello World" {
|
||||||
t.Log("Expected 'Hellow World' but got ", result)
|
t.Log("Expected 'Hello World' but got ", result)
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue