Encoders for ints and floats now convert compatible values
* Any int that fits in the destination int type will be accepted * Any float that fits in the destination float type will be accepted
This commit is contained in:
@@ -19,7 +19,7 @@ func TestTranscodeError(t *testing.T) {
|
||||
switch {
|
||||
case err == nil:
|
||||
t.Error("Expected transcode error to return error, but it didn't")
|
||||
case err.Error() == "Expected int32, received string":
|
||||
case err.Error() == "Expected integer representable in int32, received string wrong":
|
||||
// Correct behavior
|
||||
default:
|
||||
t.Errorf("Expected transcode error, received %v", err)
|
||||
|
||||
Reference in New Issue
Block a user