diff options
Diffstat (limited to 'tests/Network/BitTorrent/Core/PeerIdSpec.hs')
-rw-r--r-- | tests/Network/BitTorrent/Core/PeerIdSpec.hs | 9 |
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 @@ | |||
1 | module Network.BitTorrent.Core.PeerIdSpec (spec) where | 1 | module Network.BitTorrent.Core.PeerIdSpec (spec) where |
2 | import Control.Applicative | 2 | import Control.Applicative |
3 | import Data.Text.Encoding as T | ||
3 | import Test.Hspec | 4 | import Test.Hspec |
4 | import Test.QuickCheck | 5 | import Test.QuickCheck |
5 | import Test.QuickCheck.Instances | 6 | import Test.QuickCheck.Instances () |
6 | import Network.BitTorrent.Core.PeerId | 7 | import Network.BitTorrent.Core.PeerId |
7 | 8 | ||
8 | 9 | ||
9 | instance Arbitrary PeerId where | 10 | instance 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 | ||
15 | spec :: Spec | 18 | spec :: Spec |