summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Exchange
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/Exchange')
-rw-r--r--tests/Network/BitTorrent/Exchange/BitfieldSpec.hs13
-rw-r--r--tests/Network/BitTorrent/Exchange/MessageSpec.hs2
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/Network/BitTorrent/Exchange/BitfieldSpec.hs b/tests/Network/BitTorrent/Exchange/BitfieldSpec.hs
new file mode 100644
index 00000000..234965fa
--- /dev/null
+++ b/tests/Network/BitTorrent/Exchange/BitfieldSpec.hs
@@ -0,0 +1,13 @@
1{-# OPTIONS -fno-warn-orphans #-}
2module Network.BitTorrent.Exchange.BitfieldSpec (spec) where
3import Control.Applicative
4import Test.Hspec
5import Test.QuickCheck
6
7import Network.BitTorrent.Exchange.Bitfield
8
9instance Arbitrary Bitfield where
10 arbitrary = fromBitmap <$> arbitrary
11
12spec :: Spec
13spec = return () \ No newline at end of file
diff --git a/tests/Network/BitTorrent/Exchange/MessageSpec.hs b/tests/Network/BitTorrent/Exchange/MessageSpec.hs
index f82b034e..d615b1ff 100644
--- a/tests/Network/BitTorrent/Exchange/MessageSpec.hs
+++ b/tests/Network/BitTorrent/Exchange/MessageSpec.hs
@@ -11,7 +11,7 @@ import Test.Hspec
11import Test.QuickCheck 11import Test.QuickCheck
12 12
13import Data.TorrentSpec () 13import Data.TorrentSpec ()
14import Data.Torrent.BitfieldSpec () 14import Network.BitTorrent.Exchange.BitfieldSpec ()
15import Network.BitTorrent.CoreSpec () 15import Network.BitTorrent.CoreSpec ()
16import Network.BitTorrent.Address () 16import Network.BitTorrent.Address ()
17import Network.BitTorrent.Exchange.BlockSpec () 17import Network.BitTorrent.Exchange.BlockSpec ()