summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Core/PeerIdSpec.hs
blob: 7153ef687188820773839e8f3a7eb8a1458dcbef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Network.BitTorrent.Core.PeerIdSpec (spec) where
import Control.Applicative
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances
import Network.BitTorrent.Core.PeerId


instance Arbitrary PeerId where
  arbitrary = oneof
    [ azureusStyle defaultClientId defaultVersionNumber <$> arbitrary
    , shadowStyle  'X'             defaultVersionNumber <$> arbitrary
    ]

spec :: Spec
spec = return ()