diff --git a/pkg/schema/field/number_test.go b/pkg/schema/field/number_test.go index e694ee6b519669b29436e7ba7a48020f44b097fc..b605405eb74faf4ec5929c5400a6091a1021cd66 100644 --- a/pkg/schema/field/number_test.go +++ b/pkg/schema/field/number_test.go @@ -1,7 +1,6 @@ package field import ( - "fmt" "math" "reflect" "testing" @@ -91,32 +90,3 @@ func TestNumberField_Encode(t *testing.T) { }) } } - -func TestNumberField_ConvertToInt64(t *testing.T) { - tests := []struct { - name string - number float64 - want int64 - }{ - { - name: "float64 to int64", - number: 9223372036854775807.0, - want: 9223372036854775807, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - num := int64(tt.number) - if reflect.DeepEqual(num, tt.want) { - return - } - t.Errorf("Convert() got = %v, want %v", int64(tt.number), tt.want) - }) - } - - fmt.Println(math.MaxInt64) - fmt.Println(float64(math.MaxInt64)) - r := float64(math.MaxInt64) - fmt.Println(int64(r)) - -}