2
0

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:
Jack Christensen
2014-06-20 10:48:45 -05:00
parent 4efa61bf5b
commit 51cada7b74
2 changed files with 120 additions and 16 deletions
+1 -1
View File
@@ -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)