diff options
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r-- | tests/Network/BitTorrent/Internal/ProgressSpec.hs | 13 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Tracker/MessageSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/tests/Network/BitTorrent/Internal/ProgressSpec.hs b/tests/Network/BitTorrent/Internal/ProgressSpec.hs new file mode 100644 index 00000000..acbfd84c --- /dev/null +++ b/tests/Network/BitTorrent/Internal/ProgressSpec.hs | |||
@@ -0,0 +1,13 @@ | |||
1 | {-# OPTIONS -fno-warn-orphans #-} | ||
2 | module Network.BitTorrent.Internal.ProgressSpec (spec) where | ||
3 | import Control.Applicative | ||
4 | import Test.Hspec | ||
5 | import Test.QuickCheck | ||
6 | import Network.BitTorrent.Internal.Progress | ||
7 | |||
8 | |||
9 | instance Arbitrary Progress where | ||
10 | arbitrary = Progress <$> arbitrary <*> arbitrary <*> arbitrary | ||
11 | |||
12 | spec :: Spec | ||
13 | spec = return () | ||
diff --git a/tests/Network/BitTorrent/Tracker/MessageSpec.hs b/tests/Network/BitTorrent/Tracker/MessageSpec.hs index 92fd8d79..29854d58 100644 --- a/tests/Network/BitTorrent/Tracker/MessageSpec.hs +++ b/tests/Network/BitTorrent/Tracker/MessageSpec.hs | |||
@@ -17,7 +17,7 @@ import Test.Hspec | |||
17 | import Test.QuickCheck | 17 | import Test.QuickCheck |
18 | 18 | ||
19 | import Data.TorrentSpec () | 19 | import Data.TorrentSpec () |
20 | import Data.Torrent.ProgressSpec () | 20 | import Network.BitTorrent.Internal.ProgressSpec () |
21 | import Network.BitTorrent.Address () | 21 | import Network.BitTorrent.Address () |
22 | import Network.BitTorrent.Address () | 22 | import Network.BitTorrent.Address () |
23 | 23 | ||
diff --git a/tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs b/tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs index 65f58911..e928f917 100644 --- a/tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs +++ b/tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs | |||
@@ -5,7 +5,7 @@ import Data.Default | |||
5 | import Data.List as L | 5 | import Data.List as L |
6 | import Test.Hspec | 6 | import Test.Hspec |
7 | 7 | ||
8 | import Data.Torrent.Progress | 8 | import Network.BitTorrent.Internal.Progress |
9 | import Network.BitTorrent.Tracker.Message as Message | 9 | import Network.BitTorrent.Tracker.Message as Message |
10 | import Network.BitTorrent.Tracker.RPC.HTTP | 10 | import Network.BitTorrent.Tracker.RPC.HTTP |
11 | 11 | ||