summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Data/Torrent/InfoHashSpec.hs1
-rw-r--r--tests/Network/BitTorrent/Core/PeerIdSpec.hs7
-rw-r--r--tests/Network/BitTorrent/Tracker/MessageSpec.hs9
3 files changed, 4 insertions, 13 deletions
diff --git a/tests/Data/Torrent/InfoHashSpec.hs b/tests/Data/Torrent/InfoHashSpec.hs
index 3cc110c1..06570ec9 100644
--- a/tests/Data/Torrent/InfoHashSpec.hs
+++ b/tests/Data/Torrent/InfoHashSpec.hs
@@ -4,7 +4,6 @@ module Data.Torrent.InfoHashSpec (spec) where
4import Control.Applicative 4import Control.Applicative
5import Data.ByteString as BS 5import Data.ByteString as BS
6import Data.Convertible 6import Data.Convertible
7import Data.Maybe
8import System.FilePath 7import System.FilePath
9import Test.Hspec 8import Test.Hspec
10import Test.QuickCheck 9import Test.QuickCheck
diff --git a/tests/Network/BitTorrent/Core/PeerIdSpec.hs b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
index 4e9f1655..a4cc30b8 100644
--- a/tests/Network/BitTorrent/Core/PeerIdSpec.hs
+++ b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
@@ -1,3 +1,4 @@
1{-# OPTIONS -fno-warn-orphans #-}
1module Network.BitTorrent.Core.PeerIdSpec (spec) where 2module Network.BitTorrent.Core.PeerIdSpec (spec) where
2import Control.Applicative 3import Control.Applicative
3import Data.Text.Encoding as T 4import Data.Text.Encoding as T
@@ -10,9 +11,9 @@ import Network.BitTorrent.Core.PeerId
10instance Arbitrary PeerId where 11instance Arbitrary PeerId where
11 arbitrary = oneof 12 arbitrary = oneof
12 [ azureusStyle defaultClientId defaultVersionNumber 13 [ azureusStyle defaultClientId defaultVersionNumber
13 <$> pure "" 14 <$> (T.encodeUtf8 <$> arbitrary)
14-- , shadowStyle 'X' defaultVersionNumber 15 , shadowStyle 'X' defaultVersionNumber
15-- <$> (T.encodeUtf8 <$> arbitrary) 16 <$> (T.encodeUtf8 <$> arbitrary)
16 ] 17 ]
17 18
18spec :: Spec 19spec :: Spec
diff --git a/tests/Network/BitTorrent/Tracker/MessageSpec.hs b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
index a95cf0d7..f1d9130c 100644
--- a/tests/Network/BitTorrent/Tracker/MessageSpec.hs
+++ b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
@@ -2,19 +2,10 @@
2module Network.BitTorrent.Tracker.MessageSpec (spec) where 2module Network.BitTorrent.Tracker.MessageSpec (spec) where
3 3
4import Control.Applicative 4import Control.Applicative
5import Data.BEncode as BE
6import Data.ByteString.Char8 as BC
7import Data.ByteString.Lazy as BL
8import Data.List as L
9import Data.Maybe
10import Data.Word 5import Data.Word
11import Data.Text
12import Network 6import Network
13import Network.URI
14import Test.Hspec 7import Test.Hspec
15import Test.QuickCheck 8import Test.QuickCheck
16import Test.QuickCheck.Gen
17import Network.HTTP.Types.URI
18 9
19import Data.Torrent.InfoHashSpec () 10import Data.Torrent.InfoHashSpec ()
20import Data.Torrent.ProgressSpec () 11import Data.Torrent.ProgressSpec ()