tools test

This commit is contained in:
asoseil 2017-12-03 19:50:25 +01:00
parent 04bc4a336c
commit bebc768746
1 changed files with 24 additions and 0 deletions

View File

@ -1 +1,25 @@
package realize package realize
import "testing"
func TestTools_Setup(t *testing.T) {
tools := Tools{
Clean: Tool{
Status: true,
name: "test",
isTool: false,
Method: "test",
Args: []string{"arg"},
},
}
tools.Setup()
if tools.Clean.name == "test"{
t.Error("Unexpected value")
}
if tools.Clean.Method != "test"{
t.Error("Unexpected value")
}
if !tools.Clean.isTool{
t.Error("Unexpected value")
}
}