Commit fd5b2c0c authored by Kirill Smelkov's avatar Kirill Smelkov

decoder: tests: Don't forget to print test input name on "no EOF" case

Else it prints just "no EOF" and it is not clear for which input the
problem is there.
parent 8b9c271e
......@@ -84,7 +84,7 @@ func TestDecode(t *testing.T) {
v, err = dec.Decode()
if !(v == nil && err == io.EOF) {
t.Errorf("decode: no EOF at end: v = %#v err = %#v", v, err)
t.Errorf("%s: decode: no EOF at end: v = %#v err = %#v", test.name, v, err)
}
// for truncated input io.ErrUnexpectedEOF must be returned
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment