diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-14 21:00:50 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-14 21:00:50 +0400 |
commit | 40f95ab06298d1f9d5e0b5d07ca14b9f81264692 (patch) | |
tree | ae1a9cb16cccd787a60129a88ef87c1d3a701dc2 /tests/Data | |
parent | 7f263c7569e907dc46d5583ae751a446950b5fdb (diff) |
Add basic tests for storage
Diffstat (limited to 'tests/Data')
-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 | ||