|
|
@@ -110,7 +110,7 @@ func TestConvertUnsignedIntegers(t *testing.T) {
|
|
|
t.Fatalf("%T type not convertible %s", value, err)
|
|
|
}
|
|
|
|
|
|
- if output != int64(42) {
|
|
|
+ if output != uint64(42) {
|
|
|
t.Fatalf("%T type not converted, got %#v %T", value, output, output)
|
|
|
}
|
|
|
}
|
|
|
@@ -120,7 +120,7 @@ func TestConvertUnsignedIntegers(t *testing.T) {
|
|
|
t.Fatal("uint64 high-bit not convertible", err)
|
|
|
}
|
|
|
|
|
|
- if output != "18446744073709551615" {
|
|
|
- t.Fatalf("uint64 high-bit not converted, got %#v %T", output, output)
|
|
|
+ if output != ^uint64(0) {
|
|
|
+ t.Fatalf("uint64 high-bit converted, got %#v %T", output, output)
|
|
|
}
|
|
|
}
|