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") } if TIME.String() != "time.Time" { t.Errorf("wrong string for TIME") } if FLOAT.String() != "float32" { t.Errorf("wrong string for FLOAT") } }