summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r--tests/Network/BitTorrent/DHT/RoutingSpec.hs12
1 files changed, 12 insertions, 0 deletions
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 @@
1module Network.BitTorrent.DHT.RoutingSpec (spec) where
2import Data.Default
3import Test.Hspec
4
5import Network.BitTorrent.Core
6import Network.BitTorrent.DHT.Routing as T
7
8spec :: Spec
9spec = do
10 describe "size" $ do
11 it "null table is empty" $ do
12 T.size (nullTable def :: Table IPv4) `shouldBe` 0 \ No newline at end of file