diff options
Diffstat (limited to 'tests/Data/Torrent/PieceSpec.hs')
-rw-r--r-- | tests/Data/Torrent/PieceSpec.hs | 13 |
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 #-} | ||
2 | module Data.Torrent.PieceSpec (spec) where | ||
3 | import Control.Applicative | ||
4 | import Test.Hspec | ||
5 | import Test.QuickCheck | ||
6 | import Data.Torrent.Piece | ||
7 | |||
8 | |||
9 | instance Arbitrary a => Arbitrary (Piece a) where | ||
10 | arbitrary = Piece <$> arbitrary <*> arbitrary | ||
11 | |||
12 | spec :: Spec | ||
13 | spec = return () \ No newline at end of file | ||