mirror of
https://github.com/gin-gonic/gin.git
synced 2026-11-24 12:03:40 +08:00
Merge d075bf04cdbba4d9832e2a242805ca049245dfeb into 1bd0ecf2d3e08da37efa270bb7be20c1eddb0d68
This commit is contained in:
commit
acac4b88fa
@ -163,11 +163,13 @@ func TestIsASCII(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSafeInt8(t *testing.T) {
|
||||
assert.Equal(t, int8(0), safeInt8(0))
|
||||
assert.Equal(t, int8(100), safeInt8(100))
|
||||
assert.Equal(t, int8(math.MaxInt8), safeInt8(int(math.MaxInt8)+123))
|
||||
}
|
||||
|
||||
func TestSafeUint16(t *testing.T) {
|
||||
assert.Equal(t, uint16(0), safeUint16(0))
|
||||
assert.Equal(t, uint16(100), safeUint16(100))
|
||||
assert.Equal(t, uint16(math.MaxUint16), safeUint16(int(math.MaxUint16)+123))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user