diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-17 16:10:38 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-17 16:10:38 +0400 |
commit | 8bff89d4dd6354288c8b01395bcf6103c6edfe19 (patch) | |
tree | e5c05ec91b6a53a33c92058fa1d8a3b131cd523b /tests/Data | |
parent | bb5919727f99eca515cd5306debaa4c43696bdc3 (diff) |
Add the nodes field to torrent file
Diffstat (limited to 'tests/Data')
-rw-r--r-- | tests/Data/Torrent/MetainfoSpec.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Data/Torrent/MetainfoSpec.hs b/tests/Data/Torrent/MetainfoSpec.hs index b5716e07..d2e0e52e 100644 --- a/tests/Data/Torrent/MetainfoSpec.hs +++ b/tests/Data/Torrent/MetainfoSpec.hs | |||
@@ -17,6 +17,7 @@ import Data.Torrent.Piece | |||
17 | import Data.Torrent.Layout | 17 | import Data.Torrent.Layout |
18 | import Data.Torrent | 18 | import Data.Torrent |
19 | import Data.Torrent.LayoutSpec () | 19 | import Data.Torrent.LayoutSpec () |
20 | import Network.BitTorrent.Core.NodeSpec () | ||
20 | 21 | ||
21 | {----------------------------------------------------------------------- | 22 | {----------------------------------------------------------------------- |
22 | -- Common | 23 | -- Common |
@@ -57,6 +58,7 @@ instance Arbitrary Torrent where | |||
57 | arbitrary = Torrent <$> arbitrary | 58 | arbitrary = Torrent <$> arbitrary |
58 | <*> arbitrary <*> arbitrary <*> arbitrary | 59 | <*> arbitrary <*> arbitrary <*> arbitrary |
59 | <*> pico <*> arbitrary <*> arbitrary | 60 | <*> pico <*> arbitrary <*> arbitrary |
61 | <*> arbitrary | ||
60 | <*> arbitrary <*> pure Nothing <*> arbitrary | 62 | <*> arbitrary <*> pure Nothing <*> arbitrary |
61 | 63 | ||
62 | {----------------------------------------------------------------------- | 64 | {----------------------------------------------------------------------- |