summaryrefslogtreecommitdiff
path: root/tests/Network
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-20 01:52:51 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-20 01:52:51 +0400
commit1f1023b9481f9e4174fb1a887d0d9a4318c1e63e (patch)
tree26af8421bb684e80c61bc367c3b148cecf5d4bb7 /tests/Network
parent60f38ddcf742883f4028c659e2abdb245e8e473a (diff)
Add test data for DHT
Diffstat (limited to 'tests/Network')
-rw-r--r--tests/Network/BitTorrent/DHT/TestData.hs45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/Network/BitTorrent/DHT/TestData.hs b/tests/Network/BitTorrent/DHT/TestData.hs
new file mode 100644
index 00000000..de4a1175
--- /dev/null
+++ b/tests/Network/BitTorrent/DHT/TestData.hs
@@ -0,0 +1,45 @@
1module Network.BitTorrent.DHT.TestData
2 ( TestEntry (..)
3 , testTorrents
4 ) where
5
6import Data.Torrent.InfoHash
7
8data TestEntry = TestEntry
9 { entryName :: String
10 , entryHash :: InfoHash
11 , entryPeers :: Int -- ^ approximate number of peers, may change with time
12 }
13
14testTorrents :: [TestEntry]
15testTorrents =
16 [ TestEntry
17 { entryName = "Automate with Arduino, Android..."
18 , entryHash = "8C0433E541DC5D1CFC095799CEF171CD4EB586F7"
19 , entryPeers = 300
20 }
21
22 , TestEntry
23 { entryName = "Beginning Programming with Java For Dummies"
24 , entryHash = "FD8967721731CC16C8B203A03E49CE839CECF184"
25 , entryPeers = 200
26 }
27
28 , TestEntry
29 { entryName = "The C Programming Language"
30 , entryHash = "146D13F090E50E97091DBBE5B37678DD1471CFAD"
31 , entryPeers = 100
32 }
33
34 , TestEntry
35 { entryName = "The C++ Programming Language"
36 , entryHash = "8E8E8E6319031A22CFF26D895AFE050085C84A7F"
37 , entryPeers = 50
38 }
39
40 , TestEntry
41 { entryName = "Game and Graphics Programming for iOS..."
42 , entryHash = "703D0595B727FCCBFAA3D03BE25F57347CCFD6DE"
43 , entryPeers = 30
44 }
45 ]