mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
🔥 a redundant import.
This commit is contained in:
parent
b4107426de
commit
ad4a34ebb0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user