diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-06-13 02:14:28 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-06-13 02:14:28 +0400 |
commit | 6042f69d711cddc0bb42457e0d16d45e7b34e431 (patch) | |
tree | eebedcbd5cb46c5d033e89aae71b8ad5c3584a94 /tests/Main.hs | |
parent | 4e30588737415d59fa36aa7308c037bb8bd8e3d5 (diff) |
~ Fix wall suggestions.
Diffstat (limited to 'tests/Main.hs')
-rw-r--r-- | tests/Main.hs | 5 |
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 | |||
26 | import Data.Torrent | 26 | import Data.Torrent |
27 | import Network.BitTorrent as BT | 27 | import Network.BitTorrent as BT |
28 | import Network.BitTorrent.Exchange.Protocol | 28 | import Network.BitTorrent.Exchange.Protocol |
29 | import Network.BitTorrent.Tracker.Protocol | ||
30 | import Network.BitTorrent.Extension | ||
31 | import Network.BitTorrent.Exchange | ||
32 | import Network.BitTorrent.Tracker | 29 | import Network.BitTorrent.Tracker |
33 | import Network.BitTorrent.Peer | 30 | import Network.BitTorrent.Peer |
34 | 31 | ||
@@ -197,7 +194,7 @@ prop_messageEncoding :: Message -> Bool | |||
197 | prop_messageEncoding msg @ (Bitfield bf) | 194 | prop_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 |
201 | prop_messageEncoding msg | 198 | prop_messageEncoding msg |
202 | = S.decode (S.encode msg) == Right msg | 199 | = S.decode (S.encode msg) == Right msg |
203 | 200 | ||