Merge d075bf04cdbba4d9832e2a242805ca049245dfeb into 43fe48e8a0f44af783116cdb010725e6bb50255f

This commit is contained in:
aoright 2026-10-07 13:28:19 -04:00 committed by GitHub
commit d4907b55e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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