mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
🔥 Data.Vector.Arbitrary.
This commit is contained in:
parent
f05570dd3e
commit
959f15198c
@ -106,7 +106,6 @@ test-suite semantic-diff-test
|
||||
, CorpusSpec
|
||||
, Data.Mergeable.Spec
|
||||
, Data.RandomWalkSimilarity.Spec
|
||||
, Data.Vector.Arbitrary
|
||||
, Diff.Spec
|
||||
, DiffSummarySpec
|
||||
, InterpreterSpec
|
||||
|
@ -1,10 +0,0 @@
|
||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||
module Data.Vector.Arbitrary (module Vector) where
|
||||
|
||||
import Data.Vector as Vector
|
||||
import Prologue
|
||||
import Test.QuickCheck
|
||||
|
||||
instance Arbitrary a => Arbitrary (Vector.Vector a) where
|
||||
arbitrary = Vector.fromList <$> listOf1 arbitrary
|
||||
shrink a = Vector.fromList <$> shrink (Vector.toList a)
|
Loading…
Reference in New Issue
Block a user