support int type alias: add test

This commit is contained in:
pengchen 2023-12-11 18:12:31 +08:00
parent 6760f70367
commit 3adf75aa11
1 changed files with 7 additions and 0 deletions

View File

@ -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
)