summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/Core')
-rw-r--r--tests/Network/BitTorrent/Core/PeerIdSpec.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Network/BitTorrent/Core/PeerIdSpec.hs b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
new file mode 100644
index 00000000..7ed8a976
--- /dev/null
+++ b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
@@ -0,0 +1,15 @@
1module Network.BitTorrent.Core.PeerIdSpec (spec) where
2import Control.Applicative
3import Test.Hspec
4import Test.QuickCheck
5import Network.BitTorrent.Core.PeerId
6
7
8instance Arbitrary PeerId where
9 arbitrary = oneof
10 [ azureusStyle defaultClientId defaultVersionNumber <$> arbitrary
11 , shadowStyle 'X' defaultVersionNumber <$> arbitrary
12 ]
13
14spec :: Spec
15spec = return () \ No newline at end of file