summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Core/PeerIdSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/Core/PeerIdSpec.hs')
-rw-r--r--tests/Network/BitTorrent/Core/PeerIdSpec.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Network/BitTorrent/Core/PeerIdSpec.hs b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
index 7153ef68..4e9f1655 100644
--- a/tests/Network/BitTorrent/Core/PeerIdSpec.hs
+++ b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
@@ -1,15 +1,18 @@
1module Network.BitTorrent.Core.PeerIdSpec (spec) where 1module Network.BitTorrent.Core.PeerIdSpec (spec) where
2import Control.Applicative 2import Control.Applicative
3import Data.Text.Encoding as T
3import Test.Hspec 4import Test.Hspec
4import Test.QuickCheck 5import Test.QuickCheck
5import Test.QuickCheck.Instances 6import Test.QuickCheck.Instances ()
6import Network.BitTorrent.Core.PeerId 7import Network.BitTorrent.Core.PeerId
7 8
8 9
9instance Arbitrary PeerId where 10instance Arbitrary PeerId where
10 arbitrary = oneof 11 arbitrary = oneof
11 [ azureusStyle defaultClientId defaultVersionNumber <$> arbitrary 12 [ azureusStyle defaultClientId defaultVersionNumber
12 , shadowStyle 'X' defaultVersionNumber <$> arbitrary 13 <$> pure ""
14-- , shadowStyle 'X' defaultVersionNumber
15-- <$> (T.encodeUtf8 <$> arbitrary)
13 ] 16 ]
14 17
15spec :: Spec 18spec :: Spec