hspecVariant 0.1.0.1 → 1.0.0.0
raw patch · 3 files changed
+27/−8 lines, 3 filesdep ~QuickCheckVariantPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheckVariant
API changes (from Hackage documentation)
- Test.Hspec.Variant: propInvalid :: (VarTesteable prop) => String -> prop -> Spec
+ Test.Hspec.Variant: propInvalid :: (VarTestable prop) => String -> prop -> Spec
- Test.Hspec.Variant: propValid :: (VarTesteable prop) => String -> prop -> Spec
+ Test.Hspec.Variant: propValid :: (VarTestable prop) => String -> prop -> Spec
Files
- README.md +18/−0
- hspecVariant.cabal +7/−6
- src/Test/Hspec/Variant.hs +2/−2
README.md view
@@ -2,8 +2,11 @@ Spec for testing properties for variant types +[](https://hackage.haskell.org/package/hspecVariant)+ ```haskell {-# LANGUAGE TypeSynonymInstances #-}+import Test.QuickCheck.Variant type Natural = Integer @@ -19,9 +22,24 @@ Test ```haskell+import Test.Hspec+import Test.Hspec.Variant+ main::IO () main = hspec $ describe "Naturals" $ propValid "succ" $ \x -> succ (x::Natural) > 0 ```++## More badges++[](http://sanjorgek.com/hspecVariant/)++[](http://sanjorgek.com/hspecVariant/)++[](http://sanjorgek.com/hspecVariant/)++[](http://sanjorgek.com/hspecVariant/)++[](http://sanjorgek.com/hspecVariant/)
hspecVariant.cabal view
@@ -2,16 +2,17 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.1+version: 1.0.0.0 synopsis: Spec for testing properties for variant types-description: Spec for testing properties for variant types+description: Spec for testing properties for variant types. Uses QuickCheckVariant+ package. homepage: https://github.com/sanjorgek/hspecVariant license: GPL-3 license-file: LICENSE author: Jorge Santiago Alvarez Cuadros maintainer: sanjorgek@ciencias.unam.mx bug-reports: https://github.com/sanjorgek/hspecVariant/issues-copyright: (c) Jorge Santiago Alvarez Cuadros +copyright: (c) Jorge Santiago Alvarez Cuadros category: Testing build-type: Simple extra-source-files: README.md@@ -23,10 +24,10 @@ library exposed-modules: Test.Hspec.Variant- -- other-modules: - -- other-extensions: + -- other-modules:+ -- other-extensions: build-depends: base >=4.6 && <5- , QuickCheckVariant ==0.2.0.0+ , QuickCheckVariant >=1 && <2 , hspec >=2.2 && <3 hs-source-dirs: src default-language: Haskell98
src/Test/Hspec/Variant.hs view
@@ -16,10 +16,10 @@ -- |Is a shorcut for -- > it ".." $ propertyValid $ ..-propValid :: (VarTesteable prop) => String -> prop -> Spec+propValid :: (VarTestable prop) => String -> prop -> Spec propValid s = it s . propertyValid -- |Is a shorcut for -- > it ".." $ propertyInvalid $ ..-propInvalid :: (VarTesteable prop) => String -> prop -> Spec+propInvalid :: (VarTestable prop) => String -> prop -> Spec propInvalid s = it s . propertyInvalid