Make test case pass on 32-bit platforms

Close #3127
pull/3160/head
Junegunn Choi 1 year ago
parent 284d77fe2e
commit aa7361337d
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -115,7 +115,7 @@ func TestAsUint16(t *testing.T) {
if AsUint16(math.MinInt16) != 0 {
t.Error("Expected", 0)
}
if AsUint16(math.MaxUint32) != math.MaxUint16 {
if AsUint16(math.MaxUint16+1) != math.MaxUint16 {
t.Error("Expected", math.MaxUint16)
}
}

Loading…
Cancel
Save