File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -869,8 +869,8 @@ func TestParserParse(t *testing.T) {
869
869
if err != nil {
870
870
t .Fatalf ("cannot obtain int64: %s" , err )
871
871
}
872
- if n != - 8838840643388017390 {
873
- t .Fatalf ("unexpected value obtained for int64; got %d; want %d" , n , - 8838840643388017390 )
872
+ if n != int64 ( - 8838840643388017390 ) {
873
+ t .Fatalf ("unexpected value obtained for int64; got %d; want %d" , n , int64 ( - 8838840643388017390 ) )
874
874
}
875
875
s := v .String ()
876
876
if s != "-8838840643388017390" {
@@ -887,11 +887,11 @@ func TestParserParse(t *testing.T) {
887
887
if tp != TypeNumber || tp .String () != "number" {
888
888
t .Fatalf ("unexpected type obtained for uint: %#v" , v )
889
889
}
890
- n , err := v .Uint ()
890
+ n , err := v .Uint64 ()
891
891
if err != nil {
892
892
t .Fatalf ("cannot obtain uint64: %s" , err )
893
893
}
894
- if n != 18446744073709551615 {
894
+ if n != uint64 ( 18446744073709551615 ) {
895
895
t .Fatalf ("unexpected value obtained for uint; got %d; want %d" , n , uint64 (18446744073709551615 ))
896
896
}
897
897
s := v .String ()
You can’t perform that action at this time.
0 commit comments