packages feed

dahdit-test 0.6.0 → 0.7.0

raw patch · 3 files changed

+11/−15 lines, 3 filesdep −hedgehogdep −tastydep ~dahditdep ~daytripperdep ~prop-unitPVP ok

version bump matches the API change (PVP)

Dependencies removed: hedgehog, tasty

Dependency ranges changed: dahdit, daytripper, prop-unit

API changes (from Hackage documentation)

Files

dahdit-test.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           dahdit-test-version:        0.6.0+version:        0.7.0 synopsis:       Test utils for Dahdit serde description:    Please see the README on GitHub at <https://github.com/ejconlon/dahdit-test#readme> homepage:       https://github.com/ejconlon/dahdit-test#readme@@ -62,11 +62,10 @@       base >=4.12 && <5     , bytestring >=0.11 && <0.13     , containers ==0.6.*-    , dahdit ==0.6.*-    , daytripper ==0.4.*+    , dahdit ==0.7.*+    , daytripper ==1.0.*     , directory ==1.3.*-    , hedgehog ==1.5.*-    , prop-unit ==0.2.*+    , prop-unit >=1.0.1 && <1.1     , text >=1.2 && <2.2   default-language: GHC2021 @@ -107,12 +106,10 @@       base >=4.12 && <5     , bytestring >=0.11 && <0.13     , containers ==0.6.*-    , dahdit ==0.6.*+    , dahdit ==0.7.*     , dahdit-test-    , daytripper ==0.4.*+    , daytripper ==1.0.*     , directory ==1.3.*-    , hedgehog ==1.5.*-    , prop-unit ==0.2.*-    , tasty >=1.4 && <1.6+    , prop-unit >=1.0.1 && <1.1     , text >=1.2 && <2.2   default-language: GHC2021
src/Test/Dahdit/GenDefault.hs view
@@ -61,10 +61,9 @@ import Data.Text qualified as T import Data.Word (Word16, Word32, Word64, Word8) import GHC.TypeLits (KnownNat, natVal)-import Hedgehog (Gen)-import Hedgehog.Gen qualified as Gen-import Hedgehog.Range qualified as Range-import PropUnit (GenDefault (..), genDefaultGeneric)+import PropUnit (Gen, GenDefault (..), genDefaultGeneric)+import PropUnit.Hedgehog.Gen qualified as Gen+import PropUnit.Hedgehog.Range qualified as Range  genPrintableChar :: Gen Char genPrintableChar = fmap w2c (Gen.integral (Range.constant 32 126))
test/Main.hs view
@@ -41,7 +41,7 @@   daytripperMain $ \lim ->     testGroup "DahditTest" $       fmap-        (testRT lim)+        (testRT (Just lim))         [ mkPropRT "DynFoo prop" expectCodecOk (genDefaultI @DynFoo)         , mkUnitRT "DynFoo unit" (expectBytes [1, 2, 0] expectCodecOk) (DynFoo 1 2)         , mkFileRT "DynFoo file" expectCodecOk "testdata/dynfoo.bin" (Just (DynFoo 1 2))