From 12c32c9b6c25c9768b01cca583061f19908d7151 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Fri, 27 Dec 2013 06:26:38 +0400 Subject: Add pending module for routing spec --- tests/Network/BitTorrent/DHT/RoutingSpec.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/Network/BitTorrent/DHT/RoutingSpec.hs (limited to 'tests/Network') diff --git a/tests/Network/BitTorrent/DHT/RoutingSpec.hs b/tests/Network/BitTorrent/DHT/RoutingSpec.hs new file mode 100644 index 00000000..10b00ace --- /dev/null +++ b/tests/Network/BitTorrent/DHT/RoutingSpec.hs @@ -0,0 +1,12 @@ +module Network.BitTorrent.DHT.RoutingSpec (spec) where +import Data.Default +import Test.Hspec + +import Network.BitTorrent.Core +import Network.BitTorrent.DHT.Routing as T + +spec :: Spec +spec = do + describe "size" $ do + it "null table is empty" $ do + T.size (nullTable def :: Table IPv4) `shouldBe` 0 \ No newline at end of file -- cgit v1.2.3