summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/DHT
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/DHT')
-rw-r--r--tests/Network/BitTorrent/DHT/MessageSpec.hs6
-rw-r--r--tests/Network/BitTorrent/DHT/TokenSpec.hs14
2 files changed, 17 insertions, 3 deletions
diff --git a/tests/Network/BitTorrent/DHT/MessageSpec.hs b/tests/Network/BitTorrent/DHT/MessageSpec.hs
index 11a8fb15..ce2ac0de 100644
--- a/tests/Network/BitTorrent/DHT/MessageSpec.hs
+++ b/tests/Network/BitTorrent/DHT/MessageSpec.hs
@@ -12,9 +12,9 @@ import Network.Socket (PortNumber)
12import Test.Hspec 12import Test.Hspec
13import Test.QuickCheck 13import Test.QuickCheck
14 14
15import Network.BitTorrent.CoreSpec () 15import Network.BitTorrent.CoreSpec ()
16import Data.Torrent.InfoHashSpec () 16import Network.BitTorrent.DHT.TokenSpec ()
17 17import Data.Torrent.InfoHashSpec ()
18 18
19remoteAddr :: SockAddr 19remoteAddr :: SockAddr
20remoteAddr = SockAddrInet 6881 (256 * 256 * 256 + 127) 20remoteAddr = SockAddrInet 6881 (256 * 256 * 256 + 127)
diff --git a/tests/Network/BitTorrent/DHT/TokenSpec.hs b/tests/Network/BitTorrent/DHT/TokenSpec.hs
new file mode 100644
index 00000000..90ff0f03
--- /dev/null
+++ b/tests/Network/BitTorrent/DHT/TokenSpec.hs
@@ -0,0 +1,14 @@
1{-# OPTIONS_GHC -fno-warn-orphans #-}
2module Network.BitTorrent.DHT.TokenSpec (spec) where
3import Control.Applicative
4import Data.String
5import Test.Hspec
6import Test.QuickCheck
7import Network.BitTorrent.DHT.Token
8
9
10instance Arbitrary Token where
11 arbitrary = fromString <$> arbitrary
12
13spec :: Spec
14spec = return () \ No newline at end of file