metainfo: Fix test

[]byte(nil) now correctly bencodes to a string
This commit is contained in:
Matt Joiner 2018-11-27 11:05:32 +11:00
parent e236cbf145
commit a0d0c64e4f
1 changed files with 1 additions and 1 deletions

View File

@ -11,5 +11,5 @@ func TestMarshalInfo(t *testing.T) {
var info Info
b, err := bencode.Marshal(info)
assert.NoError(t, err)
assert.EqualValues(t, "d4:name0:12:piece lengthi0e6:pieceslee", string(b))
assert.EqualValues(t, "d4:name0:12:piece lengthi0e6:pieces0:e", string(b))
}