1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

🔥 a redundant import.

This commit is contained in:
Rob Rix 2016-06-27 13:12:37 -04:00
parent b4107426de
commit ad4a34ebb0

View File

@ -1,7 +1,6 @@
{-# LANGUAGE DataKinds #-}
module TermSpec where
import ArbitraryTerm
import Category
import Data.String
import Data.Text.Arbitrary ()
@ -22,11 +21,11 @@ spec = parallel $ do
prop "equality is reflexive" $
\ a -> toTerm a == toTerm (a :: ArbitraryTerm String ())
describe "ArbitraryTerm" $
describe "ArbitraryTerm" $ do
prop "generates terms of a specific size" $ forAll ((arbitrary >>= \ n -> (,) n <$> termOfSize n) `suchThat` ((> 0) . fst)) $
\ (n, term) -> arbitraryTermSize (term :: ArbitraryTerm String ()) `shouldBe` n
describe "ArbitraryDiff" $
describe "ArbitraryDiff" $ do
prop "generates diffs of a specific size" $ forAll ((arbitrary >>= \ n -> (,) n <$> diffOfSize n) `suchThat` ((> 0) . fst)) $
\ (n, diff) -> arbitraryDiffSize (diff :: ArbitraryDiff String ()) `shouldBe` n