summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-26 06:30:09 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-26 06:30:09 +0400
commit220b86a81a9bcd857bcd4d2443480e73f35bcff3 (patch)
tree5321efd8d794ce63c23b862b252393bee7b912b2 /tests/Network/BitTorrent
parent8faf05f27f955ce3633ede220ac8da97488cd229 (diff)
Fix warnings
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r--tests/Network/BitTorrent/Core/PeerIdSpec.hs1
-rw-r--r--tests/Network/BitTorrent/Tracker/MessageSpec.hs12
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/Network/BitTorrent/Core/PeerIdSpec.hs b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
index 7ed8a976..7153ef68 100644
--- a/tests/Network/BitTorrent/Core/PeerIdSpec.hs
+++ b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
@@ -2,6 +2,7 @@ module Network.BitTorrent.Core.PeerIdSpec (spec) where
2import Control.Applicative 2import Control.Applicative
3import Test.Hspec 3import Test.Hspec
4import Test.QuickCheck 4import Test.QuickCheck
5import Test.QuickCheck.Instances
5import Network.BitTorrent.Core.PeerId 6import Network.BitTorrent.Core.PeerId
6 7
7 8
diff --git a/tests/Network/BitTorrent/Tracker/MessageSpec.hs b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
index 62b4ab04..99518067 100644
--- a/tests/Network/BitTorrent/Tracker/MessageSpec.hs
+++ b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
@@ -10,17 +10,17 @@ import Network
10import Network.URI 10import Network.URI
11import Test.Hspec 11import Test.Hspec
12import Test.QuickCheck 12import Test.QuickCheck
13import Network.HTTP.Types.URI 13--import Network.HTTP.Types.URI
14 14
15import Data.Torrent.InfoHashSpec hiding (spec) 15import Data.Torrent.InfoHashSpec ()
16import Data.Torrent.ProgressSpec hiding (spec) 16import Data.Torrent.ProgressSpec ()
17import Network.BitTorrent.Core.PeerIdSpec hiding (spec) 17import Network.BitTorrent.Core.PeerIdSpec ()
18 18
19import Network.BitTorrent.Tracker.Message 19import Network.BitTorrent.Tracker.Message
20 20
21 21
22prop_bencode :: Eq a => BEncode a => a -> Bool 22--prop_bencode :: Eq a => BEncode a => a -> Bool
23prop_bencode a = BE.decode (BL.toStrict (BE.encode a)) == return a 23--prop_bencode a = BE.decode (BL.toStrict (BE.encode a)) == return a
24 24
25--prop_urlencode :: Eq a => URLDecoded a => URLEncoded a => a -> Bool 25--prop_urlencode :: Eq a => URLDecoded a => URLEncoded a => a -> Bool
26--prop_urlencode a = urlDecode (T.pack (urlEncode a)) == a 26--prop_urlencode a = urlDecode (T.pack (urlEncode a)) == a