metainfo: Fix test
[]byte(nil) now correctly bencodes to a string
This commit is contained in:
parent
e236cbf145
commit
a0d0c64e4f
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue