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