]> Sergey Matveev's repositories - btrtrc.git/blob - metainfo/info_test.go
metainfo: Fix test
[btrtrc.git] / metainfo / info_test.go
1 package metainfo
2
3 import (
4         "testing"
5
6         "github.com/anacrolix/torrent/bencode"
7         "github.com/stretchr/testify/assert"
8 )
9
10 func TestMarshalInfo(t *testing.T) {
11         var info Info
12         b, err := bencode.Marshal(info)
13         assert.NoError(t, err)
14         assert.EqualValues(t, "d4:name0:12:piece lengthi0e6:pieces0:e", string(b))
15 }