summaryrefslogtreecommitdiff
path: root/tests/Network
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network')
-rw-r--r--tests/Network/BitTorrent/Internal/ProgressSpec.hs13
-rw-r--r--tests/Network/BitTorrent/Tracker/MessageSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Tracker/RPC/HTTPSpec.hs2
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 #-}
2module Network.BitTorrent.Internal.ProgressSpec (spec) where
3import Control.Applicative
4import Test.Hspec
5import Test.QuickCheck
6import Network.BitTorrent.Internal.Progress
7
8
9instance Arbitrary Progress where
10 arbitrary = Progress <$> arbitrary <*> arbitrary <*> arbitrary
11
12spec :: Spec
13spec = 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
17import Test.QuickCheck 17import Test.QuickCheck
18 18
19import Data.TorrentSpec () 19import Data.TorrentSpec ()
20import Data.Torrent.ProgressSpec () 20import Network.BitTorrent.Internal.ProgressSpec ()
21import Network.BitTorrent.Address () 21import Network.BitTorrent.Address ()
22import Network.BitTorrent.Address () 22import 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
5import Data.List as L 5import Data.List as L
6import Test.Hspec 6import Test.Hspec
7 7
8import Data.Torrent.Progress 8import Network.BitTorrent.Internal.Progress
9import Network.BitTorrent.Tracker.Message as Message 9import Network.BitTorrent.Tracker.Message as Message
10import Network.BitTorrent.Tracker.RPC.HTTP 10import Network.BitTorrent.Tracker.RPC.HTTP
11 11