summaryrefslogtreecommitdiff
path: root/tests/Main.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-13 02:14:28 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-13 02:14:28 +0400
commit6042f69d711cddc0bb42457e0d16d45e7b34e431 (patch)
treeeebedcbd5cb46c5d033e89aae71b8ad5c3584a94 /tests/Main.hs
parent4e30588737415d59fa36aa7308c037bb8bd8e3d5 (diff)
~ Fix wall suggestions.
Diffstat (limited to 'tests/Main.hs')
-rw-r--r--tests/Main.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/Main.hs b/tests/Main.hs
index 3a379f47..b99f2469 100644
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -26,9 +26,6 @@ import Data.Bitfield as BF
26import Data.Torrent 26import Data.Torrent
27import Network.BitTorrent as BT 27import Network.BitTorrent as BT
28import Network.BitTorrent.Exchange.Protocol 28import Network.BitTorrent.Exchange.Protocol
29import Network.BitTorrent.Tracker.Protocol
30import Network.BitTorrent.Extension
31import Network.BitTorrent.Exchange
32import Network.BitTorrent.Tracker 29import Network.BitTorrent.Tracker
33import Network.BitTorrent.Peer 30import Network.BitTorrent.Peer
34 31
@@ -197,7 +194,7 @@ prop_messageEncoding :: Message -> Bool
197prop_messageEncoding msg @ (Bitfield bf) 194prop_messageEncoding msg @ (Bitfield bf)
198 = case S.decode (S.encode msg) of 195 = case S.decode (S.encode msg) of
199 Right (Bitfield bf') -> bf == adjustSize (totalCount bf) bf' 196 Right (Bitfield bf') -> bf == adjustSize (totalCount bf) bf'
200 Left _ -> False 197 _ -> False
201prop_messageEncoding msg 198prop_messageEncoding msg
202 = S.decode (S.encode msg) == Right msg 199 = S.decode (S.encode msg) == Right msg
203 200