Test: NewFromInt: add MinInt case

This commit is contained in:
Egor Seredin 2024-02-13 06:53:19 +00:00
parent 19b27aafdc
commit dd34943dc4

View file

@ -476,10 +476,11 @@ func TestNewFromFloatWithExponent(t *testing.T) {
func TestNewFromInt(t *testing.T) { func TestNewFromInt(t *testing.T) {
tests := map[int64]string{ tests := map[int64]string{
0: "0", 0: "0",
1: "1", 1: "1",
323412345: "323412345", 323412345: "323412345",
9223372036854775807: "9223372036854775807", 9223372036854775807: "9223372036854775807",
-9223372036854775808: "-9223372036854775808",
} }
// add negatives // add negatives
@ -501,10 +502,11 @@ func TestNewFromInt(t *testing.T) {
func TestNewFromInt32(t *testing.T) { func TestNewFromInt32(t *testing.T) {
tests := map[int32]string{ tests := map[int32]string{
0: "0", 0: "0",
1: "1", 1: "1",
323412345: "323412345", 323412345: "323412345",
2147483647: "2147483647", 2147483647: "2147483647",
-2147483648: "-2147483648",
} }
// add negatives // add negatives