unit test

This commit is contained in:
Liang Ding 2015-08-04 21:48:38 +08:00
parent 931e573f52
commit ab24e1b6d9
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ import (
"testing" "testing"
) )
func TestGetCrossPlatforms(t *testing.T) {
crossPlatforms := Go.GetCrossPlatforms()
if len(crossPlatforms) < 1 {
t.Error("should have one platform at least")
}
}
func TestGetAPIPath(t *testing.T) { func TestGetAPIPath(t *testing.T) {
apiPath := Go.GetAPIPath() apiPath := Go.GetAPIPath()