summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Core
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-17 15:52:26 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-17 15:52:26 +0400
commitbb5919727f99eca515cd5306debaa4c43696bdc3 (patch)
tree65f27fb20646f4ddcab12e0d13d2523648115f97 /tests/Network/BitTorrent/Core
parent4fae190ed4cc650524707d802ac83969b8e0b394 (diff)
Add basic spec for Core.Node module
Diffstat (limited to 'tests/Network/BitTorrent/Core')
-rw-r--r--tests/Network/BitTorrent/Core/NodeSpec.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Network/BitTorrent/Core/NodeSpec.hs b/tests/Network/BitTorrent/Core/NodeSpec.hs
new file mode 100644
index 00000000..b3bdf134
--- /dev/null
+++ b/tests/Network/BitTorrent/Core/NodeSpec.hs
@@ -0,0 +1,19 @@
1module Network.BitTorrent.Core.NodeSpec (spec) where
2import Control.Applicative
3import Test.Hspec
4import Test.QuickCheck
5
6import Network.BitTorrent.Core.Node
7import Network.BitTorrent.Core.PeerAddrSpec ()
8
9instance Arbitrary NodeId where
10 arbitrary = undefined
11
12instance Arbitrary a => Arbitrary (NodeAddr a) where
13 arbitrary = NodeAddr <$> arbitrary <*> arbitrary
14
15instance Arbitrary a => Arbitrary (NodeInfo a) where
16 arbitrary = NodeInfo <$> arbitrary <*> arbitrary
17
18spec :: Spec
19spec = return () \ No newline at end of file