package bencode import ( "testing" "dim13.org/btr/torrent" ) func TestMarshal(t *testing.T) { v := torrent.Torrent{ Announce: "test", AnnounceList: []string{"test1", "test2", "test3"}, Comment: "comment", CreationDate: 123, } out, err := Marshal(v) if err != nil { t.Error(err) } t.Logf("%q\n", string(out)) }