Merge d075bf04cdbba4d9832e2a242805ca049245dfeb into 0f09c3a9b4626d9fe9979cf4d0521d6ae32ab646

This commit is contained in:
aoright 2026-10-15 05:49:08 +00:00 committed by GitHub
commit aa1c6c4f8b
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))
}