mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:44:03 +03:00
Correct float test for error rate
This commit is contained in:
@@ -36,7 +36,11 @@ func (suite *TypeErrorRateTestSuite) TestUnmarshalFail() {
|
||||
})
|
||||
}
|
||||
|
||||
suite.Error(json.Unmarshal([]byte("test"), &typeErrorRateTestStruct{}))
|
||||
data, err := json.Marshal(map[string]string{
|
||||
"value": "hello",
|
||||
})
|
||||
suite.NoError(err)
|
||||
suite.Error(json.Unmarshal(data, &typeErrorRateTestStruct{}))
|
||||
}
|
||||
|
||||
func (suite *TypeErrorRateTestSuite) TestUnmarshalOk() {
|
||||
|
||||
Reference in New Issue
Block a user