diff --git a/conf/Coercers_test.go b/conf/Coercers_test.go index b4ae10f..2e1b01f 100644 --- a/conf/Coercers_test.go +++ b/conf/Coercers_test.go @@ -91,17 +91,16 @@ func TestFloat64Coercer(t *testing.T) { {input: 123, want: 123.00}, {input: "123", want: 123.00}, {input: 1.23, want: 1.23}, - {input: true, want: 1.00}, {input: "x", err: true}, } for _, test := range tests { - f, err = Coercers.Int(test.input) + f, err = Coercers.Float64(test.input) if test.err { assert.NotNil(t, err) } else { assert.Nil(t, err) - assert.Equal(t, test.want, f.(int)) + assert.Equal(t, test.want, f.(float64)) } } }