mirror of https://github.com/spf13/cast.git
support int type alias: add test
This commit is contained in:
parent
6760f70367
commit
3adf75aa11
|
@ -47,6 +47,7 @@ func createNumberTestSteps(zero, one, eight, eightnegative, eightpoint31, eightp
|
||||||
{int16(8), eight, false},
|
{int16(8), eight, false},
|
||||||
{int32(8), eight, false},
|
{int32(8), eight, false},
|
||||||
{int64(8), eight, false},
|
{int64(8), eight, false},
|
||||||
|
{eightAliasType, eight, false},
|
||||||
{time.Weekday(8), eight, false},
|
{time.Weekday(8), eight, false},
|
||||||
{time.Month(8), eight, false},
|
{time.Month(8), eight, false},
|
||||||
{uint(8), eight, false},
|
{uint(8), eight, false},
|
||||||
|
@ -1221,3 +1222,9 @@ func locationEqual(a, b *time.Location) bool {
|
||||||
|
|
||||||
return tA.Equal(tB)
|
return tA.Equal(tB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BizType int
|
||||||
|
|
||||||
|
const (
|
||||||
|
eightAliasType BizType = 8
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue