diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-26 06:25:25 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-11-26 06:25:25 +0400 |
commit | 0ec645b8e89c9b0177377812f7e4035c2c94ce1b (patch) | |
tree | 51d5cf893bf7eac1ff3494bbf5942e83c113b6c6 /tests/Data/Torrent | |
parent | 09e2d9940859b2976e58cdb8f8b06f89a48a0f1a (diff) |
Add Arbitrary instance for AnnounceQuery
Diffstat (limited to 'tests/Data/Torrent')
-rw-r--r-- | tests/Data/Torrent/ProgressSpec.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Data/Torrent/ProgressSpec.hs b/tests/Data/Torrent/ProgressSpec.hs new file mode 100644 index 00000000..32efbd7a --- /dev/null +++ b/tests/Data/Torrent/ProgressSpec.hs | |||
@@ -0,0 +1,13 @@ | |||
1 | {-# OPTIONS -fno-warn-orphans #-} | ||
2 | module Data.Torrent.ProgressSpec (spec) where | ||
3 | import Control.Applicative | ||
4 | import Test.Hspec | ||
5 | import Test.QuickCheck | ||
6 | import Data.Torrent.Progress | ||
7 | |||
8 | |||
9 | instance Arbitrary Progress where | ||
10 | arbitrary = Progress <$> arbitrary <*> arbitrary <*> arbitrary | ||
11 | |||
12 | spec :: Spec | ||
13 | spec = return () | ||