args/type_test.go

19 lines
360 B
Go

package args
import "testing"
func TestType(t *testing.T) {
if INT.String() != "int" {
t.Errorf("wrong string for INT")
}
if STRING.String() != "string" {
t.Errorf("wrong string for STRING")
}
if BOOL.String() != "bool" {
t.Errorf("wrong string for BOOL")
}
if DURATION.String() != "time.Duration" {
t.Errorf("wrong string for DURATION")
}
}