diff options
Diffstat (limited to 'tests/Data/Torrent/MagnetSpec.hs')
-rw-r--r-- | tests/Data/Torrent/MagnetSpec.hs | 3 |
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 | ||
4 | import Control.Applicative | 4 | import Control.Applicative |
5 | import Data.Maybe | 5 | import Data.Maybe |
6 | import Data.Monoid | ||
6 | import Test.Hspec | 7 | import Test.Hspec |
7 | import Test.QuickCheck | 8 | import Test.QuickCheck |
8 | import Test.QuickCheck.Instances () | 9 | import Test.QuickCheck.Instances () |
@@ -23,7 +24,7 @@ instance Arbitrary URI where | |||
23 | instance Arbitrary Magnet where | 24 | instance 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 | ||
28 | magnetEncoding :: Magnet -> Bool | 29 | magnetEncoding :: Magnet -> Bool |
29 | magnetEncoding m = parseMagnet (renderMagnet m) == Just m | 30 | magnetEncoding m = parseMagnet (renderMagnet m) == Just m |