summaryrefslogtreecommitdiff
path: root/tests/Data/Torrent
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-11-26 06:25:25 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-11-26 06:25:25 +0400
commit0ec645b8e89c9b0177377812f7e4035c2c94ce1b (patch)
tree51d5cf893bf7eac1ff3494bbf5942e83c113b6c6 /tests/Data/Torrent
parent09e2d9940859b2976e58cdb8f8b06f89a48a0f1a (diff)
Add Arbitrary instance for AnnounceQuery
Diffstat (limited to 'tests/Data/Torrent')
-rw-r--r--tests/Data/Torrent/ProgressSpec.hs13
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 #-}
2module Data.Torrent.ProgressSpec (spec) where
3import Control.Applicative
4import Test.Hspec
5import Test.QuickCheck
6import Data.Torrent.Progress
7
8
9instance Arbitrary Progress where
10 arbitrary = Progress <$> arbitrary <*> arbitrary <*> arbitrary
11
12spec :: Spec
13spec = return ()