summaryrefslogtreecommitdiff
path: root/tests/Data/Torrent/MagnetSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Data/Torrent/MagnetSpec.hs')
-rw-r--r--tests/Data/Torrent/MagnetSpec.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Data/Torrent/MagnetSpec.hs b/tests/Data/Torrent/MagnetSpec.hs
index 5adc6df7..3ecf8705 100644
--- a/tests/Data/Torrent/MagnetSpec.hs
+++ b/tests/Data/Torrent/MagnetSpec.hs
@@ -3,6 +3,7 @@ module Data.Torrent.MagnetSpec (spec) where
3 3
4import Control.Applicative 4import Control.Applicative
5import Data.Maybe 5import Data.Maybe
6import Data.Monoid
6import Test.Hspec 7import Test.Hspec
7import Test.QuickCheck 8import Test.QuickCheck
8import Test.QuickCheck.Instances () 9import Test.QuickCheck.Instances ()
@@ -23,7 +24,7 @@ instance Arbitrary URI where
23instance Arbitrary Magnet where 24instance Arbitrary Magnet where
24 arbitrary = Magnet <$> arbitrary <*> arbitrary 25 arbitrary = Magnet <$> arbitrary <*> arbitrary
25 <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary 26 <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
26 <*> arbitrary <*> arbitrary <*> pure (error "arbitrary magnet") 27 <*> arbitrary <*> arbitrary <*> pure mempty
27 28
28magnetEncoding :: Magnet -> Bool 29magnetEncoding :: Magnet -> Bool
29magnetEncoding m = parseMagnet (renderMagnet m) == Just m 30magnetEncoding m = parseMagnet (renderMagnet m) == Just m