summaryrefslogtreecommitdiff
path: root/tests/Data/Torrent/PieceSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Data/Torrent/PieceSpec.hs')
-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