commit ghc-tasty-hedgehog for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-tasty-hedgehog for openSUSE:Factory checked in at 2022-08-01 21:28:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-tasty-hedgehog (Old) and /work/SRC/openSUSE:Factory/.ghc-tasty-hedgehog.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-tasty-hedgehog" Mon Aug 1 21:28:57 2022 rev:3 rq:985827 version:1.2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-tasty-hedgehog/ghc-tasty-hedgehog.changes 2022-02-11 23:11:41.907343187 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-tasty-hedgehog.new.1533/ghc-tasty-hedgehog.changes 2022-08-01 21:29:05.593431702 +0200 @@ -1,0 +2,8 @@ +Thu Mar 10 02:09:34 UTC 2022 - Peter Simons <psimons@suse.com> + +- Update tasty-hedgehog to version 1.2.0.0. + ## 1.2.0.0 -- 2022-03-07 + + * Add `testPropertyNamed` function and deprecate `testProperty`. + +------------------------------------------------------------------- Old: ---- tasty-hedgehog-1.1.0.0.tar.gz tasty-hedgehog.cabal New: ---- tasty-hedgehog-1.2.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-tasty-hedgehog.spec ++++++ --- /var/tmp/diff_new_pack.GE1zqE/_old 2022-08-01 21:29:06.761435053 +0200 +++ /var/tmp/diff_new_pack.GE1zqE/_new 2022-08-01 21:29:06.769435076 +0200 @@ -19,13 +19,12 @@ %global pkg_name tasty-hedgehog %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.1.0.0 +Version: 1.2.0.0 Release: 0 Summary: Integration for tasty and hedgehog License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-hedgehog-devel BuildRequires: ghc-rpm-macros @@ -53,7 +52,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ tasty-hedgehog-1.1.0.0.tar.gz -> tasty-hedgehog-1.2.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-hedgehog-1.1.0.0/changelog.md new/tasty-hedgehog-1.2.0.0/changelog.md --- old/tasty-hedgehog-1.1.0.0/changelog.md 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-hedgehog-1.2.0.0/changelog.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,9 @@ # Revision history for tasty-hedgehog +## 1.2.0.0 -- 2022-03-07 + +* Add `testPropertyNamed` function and deprecate `testProperty`. + ## 1.1.0.0 -- 2021-04-03 * Add fromGroup function @@ -25,7 +29,7 @@ ## 0.2.0.0 -- 2018-03-13 * Removes the verbosity option, which was unsupported -* Fixes a bug in configuration option handling, which +* Fixes a bug in configuration option handling, which was overwriting use configuration with the defaults. ## 0.1.0.2 -- 2018-01-22 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-hedgehog-1.1.0.0/src/Test/Tasty/Hedgehog.hs new/tasty-hedgehog-1.2.0.0/src/Test/Tasty/Hedgehog.hs --- old/tasty-hedgehog-1.1.0.0/src/Test/Tasty/Hedgehog.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-hedgehog-1.2.0.0/src/Test/Tasty/Hedgehog.hs 2001-09-09 03:46:40.000000000 +0200 @@ -4,14 +4,15 @@ -- -- @ -- testGroup "tasty-hedgehog tests" [ --- testProperty "reverse involutive" prop_reverse_involutive --- , testProperty "sort idempotent" prop_sort_idempotent +-- testPropertyNamed "reverse involutive" "prop_reverse_involutive" prop_reverse_involutive +-- , testPropertyNamed "sort idempotent" "prop_sort_idempotent" prop_sort_idempotent -- ] -- @ -- {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Test.Tasty.Hedgehog ( testProperty + , testPropertyNamed , fromGroup -- * Options you can pass in via tasty , HedgehogReplay(..) @@ -36,12 +37,31 @@ import Hedgehog.Internal.Report import Hedgehog.Internal.Seed as Seed -data HP = HP T.TestName Property +data HP = HP PropertyName Property deriving (Typeable) -- | Create a 'T.TestTree' from a Hedgehog 'Property'. +{-# DEPRECATED testProperty "testProperty will cause Hedgehog to provide incorrect instructions for re-checking properties" #-} testProperty :: T.TestName -> Property -> T.TestTree -testProperty name prop = T.singleTest name (HP name prop) +testProperty name prop = T.singleTest name (HP (PropertyName name) prop) + +-- | `testPropertyNamed` @testName propertyName property@ creates a +-- 'T.TestTree' from @property@ using @testName@ as the displayed +-- description for the property. The @propertyName@ is used by Hedgehog +-- when a failure occurs to provide instructions for how to re-run +-- the property and should normally be set to a string representation +-- of the @property@ argument. +-- +-- @ +-- testPropertyNamed +-- "reverse is involutive" +-- "prop_reverse_involutive" +-- prop_reverse_involutive +-- @ +-- +-- @since 1.2.0.0 +testPropertyNamed :: T.TestName -> PropertyName -> Property -> T.TestTree +testPropertyNamed name propName prop = T.singleTest name (HP propName prop) -- | Create a 'T.TestTree' from a Hedgehog 'Group'. fromGroup :: Group -> T.TestTree @@ -142,11 +162,11 @@ reportOutput :: Bool -> UseColor - -> String + -> PropertyName -> Report Result -> IO String reportOutput showReplay useColor name report = do - s <- renderResult useColor (Just (PropertyName name)) report + s <- renderResult useColor (Just name) report pure $ case reportStatus report of Failed fr -> let diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-hedgehog-1.1.0.0/tasty-hedgehog.cabal new/tasty-hedgehog-1.2.0.0/tasty-hedgehog.cabal --- old/tasty-hedgehog-1.1.0.0/tasty-hedgehog.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-hedgehog-1.2.0.0/tasty-hedgehog.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ name: tasty-hedgehog -version: 1.1.0.0 +version: 1.2.0.0 license: BSD3 license-file: LICENCE author: Dave Laing @@ -21,10 +21,10 @@ library exposed-modules: Test.Tasty.Hedgehog - build-depends: base >= 4.8 && <4.16 + build-depends: base >= 4.8 && <4.17 , tagged >= 0.8 && < 0.9 , tasty >= 0.11 && < 1.5 - , hedgehog >= 1.0.2 && < 1.0.6 + , hedgehog >= 1.0.2 && < 1.1.2 hs-source-dirs: src ghc-options: -Wall default-language: Haskell2010 @@ -33,10 +33,10 @@ type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test - build-depends: base >= 4.8 && <4.16 + build-depends: base >= 4.8 && <4.17 , tasty >= 0.11 && < 1.5 , tasty-expected-failure >= 0.11 && < 0.13 - , hedgehog >= 1.0.2 && < 1.0.6 + , hedgehog >= 1.0.2 && < 1.1.2 , tasty-hedgehog ghc-options: -Wall default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasty-hedgehog-1.1.0.0/test/Main.hs new/tasty-hedgehog-1.2.0.0/test/Main.hs --- old/tasty-hedgehog-1.1.0.0/test/Main.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/tasty-hedgehog-1.2.0.0/test/Main.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,4 @@ +{-# OPTIONS_GHC -Wno-deprecations #-} {-# language OverloadedStrings #-} module Main where @@ -45,5 +46,13 @@ prop_reverse_involutive , expectFail $ testProperty "badReverse involutive fails" - prop_badReverse_involutive + prop_badReverse_involutive + , testPropertyNamed + "reverse involutive" + "prop_reverse_involutive" + prop_reverse_involutive + , expectFail $ testPropertyNamed + "badReverse involutive fails" + "prop_badReverse_involutive" + prop_badReverse_involutive ]
participants (1)
-
Source-Sync