git.iko.soy/typeable/bloodhound
on master help sign in
Resized arbitrary instance for UpdatableIndexSetting\'
commit4b8dcea66a976279b56693e8a060c1de87414225 authorChris Allen <cma@bitemyapp.com> dateSat 5 May 2018, 17:20 (8 years ago) parentb9139e9
1 file changed+4−3
tests/V5/Test/Generators.hs+4−3
tests/V5/Test/Generators.hs+4−3
@@ -462,9 +462,6 @@ makeArbitrary ''Analysis
462462instance Arbitrary Analysis where arbitrary = arbitraryAnalysis
463463makeArbitrary ''Tokenizer
464464instance Arbitrary Tokenizer where arbitrary = arbitraryTokenizer
465−makeArbitrary ''UpdatableIndexSetting
466−instance Arbitrary UpdatableIndexSetting where
467− arbitrary = arbitraryUpdatableIndexSetting
468465makeArbitrary ''Compression
469466instance Arbitrary Compression where arbitrary = arbitraryCompression
470467makeArbitrary ''Bytes
@@ -534,6 +531,10 @@ instance Arbitrary FactorMissingFieldValue where arbitrary = arbitraryFactorMiss
534531makeArbitrary ''FactorModifier
535532instance Arbitrary FactorModifier where arbitrary = arbitraryFactorModifier
536533
534+makeArbitrary ''UpdatableIndexSetting
535+instance Arbitrary UpdatableIndexSetting where
536+ arbitrary = resize 10 arbitraryUpdatableIndexSetting
537+
537538newtype UpdatableIndexSetting' =
538539 UpdatableIndexSetting' UpdatableIndexSetting
539540 deriving (Show, Eq, ToJSON, FromJSON, ApproxEq, Typeable)