summaryrefslogtreecommitdiff
path: root/tests/Data
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-14 21:00:50 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-14 21:00:50 +0400
commit40f95ab06298d1f9d5e0b5d07ca14b9f81264692 (patch)
treeae1a9cb16cccd787a60129a88ef87c1d3a701dc2 /tests/Data
parent7f263c7569e907dc46d5583ae751a446950b5fdb (diff)
Add basic tests for storage
Diffstat (limited to 'tests/Data')
-rw-r--r--tests/Data/Torrent/PieceSpec.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Data/Torrent/PieceSpec.hs b/tests/Data/Torrent/PieceSpec.hs
new file mode 100644
index 00000000..ef1f2938
--- /dev/null
+++ b/tests/Data/Torrent/PieceSpec.hs
@@ -0,0 +1,13 @@
1{-# OPTIONS_GHC -fno-warn-orphans #-}
2module Data.Torrent.PieceSpec (spec) where
3import Control.Applicative
4import Test.Hspec
5import Test.QuickCheck
6import Data.Torrent.Piece
7
8
9instance Arbitrary a => Arbitrary (Piece a) where
10 arbitrary = Piece <$> arbitrary <*> arbitrary
11
12spec :: Spec
13spec = return () \ No newline at end of file