Fix the error test.
This commit is contained in:
parent
ed628f7129
commit
cfa264b9dc
|
|
@ -21,6 +21,6 @@ func TestFlexInt(t *testing.T) {
|
|||
a.EqualValues(FlexInt(5), r.Channel)
|
||||
a.Nil(json.Unmarshal(seven, &r))
|
||||
a.EqualValues(FlexInt(7), r.Channel)
|
||||
a.NotNil(json.Unmarshal(auto, &r))
|
||||
a.Nil(json.Unmarshal(auto, &r), "a regular string must not produce an unmarshal error")
|
||||
a.EqualValues(FlexInt(0), r.Channel)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue