aboutsummaryrefslogtreecommitdiff
path: root/bencode
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-12 07:18:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-12 07:18:17 +0200
commit4cd179bf51c3f64ef55bd9d118fda623b826958a (patch)
tree9d24cea2859b6ae0c275646fc19e7cda0c2588ab /bencode
parent92b93449373418da481369078208bd8630d67c41 (diff)
Announce-list is list of lists
Diffstat (limited to 'bencode')
-rw-r--r--bencode/bencode_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go
index 2a7678f..76f73d0 100644
--- a/bencode/bencode_test.go
+++ b/bencode/bencode_test.go
@@ -11,8 +11,11 @@ import (
func TestMarshal(t *testing.T) {
v := meta.Torrent{
- Announce: "test",
- AnnounceList: []string{"test1", "test2", "test3"},
+ Announce: "test",
+ AnnounceList: [][]string{
+ []string{"test1", "test2"},
+ []string{"test3"},
+ },
CreationDate: time.Now(),
Info: meta.Info{
Length: 1000,