aboutsummaryrefslogtreecommitdiff
path: root/bencode/bencode_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bencode/bencode_test.go')
-rw-r--r--bencode/bencode_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go
index f9018b2..01e0446 100644
--- a/bencode/bencode_test.go
+++ b/bencode/bencode_test.go
@@ -10,8 +10,14 @@ func TestMarshal(t *testing.T) {
v := torrent.Torrent{
Announce: "test",
AnnounceList: []string{"test1", "test2", "test3"},
- Comment: "comment",
CreationDate: 123,
+ Info: torrent.Info{
+ Length: 1000,
+ Files: []torrent.File{
+ {Path: "A"},
+ {Path: "B"},
+ },
+ },
}
out, err := Marshal(v)
if err != nil {