Merge d075bf04cdbba4d9832e2a242805ca049245dfeb into 5c6a15f8f9566612076bd209e623861bf92a6283

This commit is contained in:
aoright 2026-09-18 18:19:13 +00:00 committed by GitHub
commit 9bbedab6f3
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))
}