hspecVariant 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+10/−7 lines, 2 filesdep ~QuickCheckVariantPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheckVariant
API changes (from Hackage documentation)
Files
- README.md +8/−5
- hspecVariant.cabal +2/−2
README.md view
@@ -1,7 +1,8 @@ # hspecVariant+ Spec for testing properties for variant types -~~~haskell+```haskell {-# LANGUAGE TypeSynonymInstances #-} type Natural = Integer@@ -12,13 +13,15 @@ if (n<0) then return n else return ((-1)*(n+1)) valid = do n <- arbitrary- if (n>=0) then return n else return ((-1)*(n+1))-~~~+ if (n>=0) then return n else return ((-1)*n)+```+ Test-~~~haskell++```haskell main::IO () main = hspec $ describe "Naturals" $ propValid "succ" $ \x -> succ (x::Natural) > 0-~~~+```
hspecVariant.cabal view
@@ -2,7 +2,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.0+version: 0.1.0.1 synopsis: Spec for testing properties for variant types description: Spec for testing properties for variant types homepage: https://github.com/sanjorgek/hspecVariant@@ -26,7 +26,7 @@ -- other-modules: -- other-extensions: build-depends: base >=4.6 && <5- , QuickCheckVariant ==0.1.1.0+ , QuickCheckVariant ==0.2.0.0 , hspec >=2.2 && <3 hs-source-dirs: src default-language: Haskell98