summaryrefslogtreecommitdiff
path: root/tests/Data/Torrent/ClientSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Data/Torrent/ClientSpec.hs')
-rw-r--r--tests/Data/Torrent/ClientSpec.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/Data/Torrent/ClientSpec.hs b/tests/Data/Torrent/ClientSpec.hs
index 94335ae9..c4c08798 100644
--- a/tests/Data/Torrent/ClientSpec.hs
+++ b/tests/Data/Torrent/ClientSpec.hs
@@ -1,9 +1,6 @@
1-- | see <http://bittorrent.org/beps/bep_0020.html>
1module Data.Torrent.ClientSpec (spec) where 2module Data.Torrent.ClientSpec (spec) where
2
3import Data.Version
4import Test.Hspec 3import Test.Hspec
5
6import Data.Torrent.Client
7import Network.BitTorrent.Core.PeerId 4import Network.BitTorrent.Core.PeerId
8 5
9spec :: Spec 6spec :: Spec
@@ -16,3 +13,7 @@ spec = do
16 it "decode azureus encoded peer id" $ do 13 it "decode azureus encoded peer id" $ do
17 clientInfo "-AZ2060-xxxxxxxxxxxx" `shouldBe` "Azureus-2060" 14 clientInfo "-AZ2060-xxxxxxxxxxxx" `shouldBe` "Azureus-2060"
18 clientInfo "-BS0000-xxxxxxxxxxxx" `shouldBe` "BTSlave-0" 15 clientInfo "-BS0000-xxxxxxxxxxxx" `shouldBe` "BTSlave-0"
16
17 it "decode Shad0w style peer id" $ do
18 clientInfo "S58B-----xxxxxxxxxxx" `shouldBe` "Shadow-5.8.11"
19 clientInfo "T58B-----xxxxxxxxxxx" `shouldBe` "BitTornado-5.8.11"