diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-29 19:22:30 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-29 19:22:30 +0400 |
commit | 10b16409b44e0f11db57e52d6ddd1f95a4eb7aec (patch) | |
tree | 0bdc7507478221a1614a23093c4bdba54d87bcf5 /tests | |
parent | 5bf4d49718b5b336befc5f5406eb22c17aa03fe8 (diff) |
Fix -Wall suggestions in tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Data/Torrent/InfoHashSpec.hs | 1 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Core/PeerIdSpec.hs | 7 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Tracker/MessageSpec.hs | 9 |
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 | |||
4 | import Control.Applicative | 4 | import Control.Applicative |
5 | import Data.ByteString as BS | 5 | import Data.ByteString as BS |
6 | import Data.Convertible | 6 | import Data.Convertible |
7 | import Data.Maybe | ||
8 | import System.FilePath | 7 | import System.FilePath |
9 | import Test.Hspec | 8 | import Test.Hspec |
10 | import Test.QuickCheck | 9 | import 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 #-} | ||
1 | module Network.BitTorrent.Core.PeerIdSpec (spec) where | 2 | module Network.BitTorrent.Core.PeerIdSpec (spec) where |
2 | import Control.Applicative | 3 | import Control.Applicative |
3 | import Data.Text.Encoding as T | 4 | import Data.Text.Encoding as T |
@@ -10,9 +11,9 @@ import Network.BitTorrent.Core.PeerId | |||
10 | instance Arbitrary PeerId where | 11 | instance 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 | ||
18 | spec :: Spec | 19 | spec :: 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 @@ | |||
2 | module Network.BitTorrent.Tracker.MessageSpec (spec) where | 2 | module Network.BitTorrent.Tracker.MessageSpec (spec) where |
3 | 3 | ||
4 | import Control.Applicative | 4 | import Control.Applicative |
5 | import Data.BEncode as BE | ||
6 | import Data.ByteString.Char8 as BC | ||
7 | import Data.ByteString.Lazy as BL | ||
8 | import Data.List as L | ||
9 | import Data.Maybe | ||
10 | import Data.Word | 5 | import Data.Word |
11 | import Data.Text | ||
12 | import Network | 6 | import Network |
13 | import Network.URI | ||
14 | import Test.Hspec | 7 | import Test.Hspec |
15 | import Test.QuickCheck | 8 | import Test.QuickCheck |
16 | import Test.QuickCheck.Gen | ||
17 | import Network.HTTP.Types.URI | ||
18 | 9 | ||
19 | import Data.Torrent.InfoHashSpec () | 10 | import Data.Torrent.InfoHashSpec () |
20 | import Data.Torrent.ProgressSpec () | 11 | import Data.Torrent.ProgressSpec () |