tasty-sugar 1.1.1.0 → 1.2.0.0
raw patch · 7 files changed
+14/−8 lines, 7 filesdep +mtldep −taggeddep ~logictPVP ok
version bump matches the API change (PVP)
Dependencies added: mtl
Dependencies removed: tagged
Dependency ranges changed: logict
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- src/Test/Tasty/Sugar.hs +3/−6
- src/internal/Test/Tasty/Sugar/AssocCheck.hs +1/−0
- src/internal/Test/Tasty/Sugar/ExpectCheck.hs +1/−0
- src/internal/Test/Tasty/Sugar/ParamCheck.hs +1/−0
- src/internal/Test/Tasty/Sugar/RootCheck.hs +1/−0
- tasty-sugar.cabal +2/−2
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for tasty-sugar +## 1.2.0.0 -- 2022-05-16++ * Update for logict 0.8.0.0 breaking change.+ * Fix small issues in example usage haddock.+ ## 1.1.1.0 -- 2021-04-19 * Use 'kvitable' to render `--showsearch` output.
src/Test/Tasty/Sugar.hs view
@@ -20,8 +20,8 @@ -- -- Example: ----- > import Test.Tasty as T--- > import Test.Tasty.Options+-- > import qualified Test.Tasty as T+-- > import Test.Tasty.Hunit ( testCase, (@?=) ) -- > import Test.Tasty.Sugar -- > import Numeric.Natural -- >@@ -43,11 +43,10 @@ -- > -- > mkTest :: Sweets -> Natural -> Expectation -> IO [T.TestTree] -- > mkTest s n e = do--- > inp <- readFile inpF -- > exp <- reads <$> readFile $ expectedFile e -- > return [ testCase (rootMatchName s <> " #" <> show n) $ do -- > Just inpF <- lookup "inputs" $ associated e--- > result <- testSomething inp+-- > result <- testSomething inpF -- > result @?= exp -- > ] --@@ -94,11 +93,9 @@ import qualified Data.List as L import Data.Maybe ( isJust, isNothing, fromJust ) import Data.Proxy-import Data.Tagged import qualified Data.Text as T import Data.Typeable ( Typeable ) import Numeric.Natural ( Natural )-import Options.Applicative import Prettyprinter import System.Directory ( listDirectory ) import Test.Tasty.Ingredients
src/internal/Test/Tasty/Sugar/AssocCheck.hs view
@@ -9,6 +9,7 @@ ) where +import Control.Monad import Control.Monad.Logic import qualified Data.List as L import Data.Maybe ( catMaybes )
src/internal/Test/Tasty/Sugar/ExpectCheck.hs view
@@ -8,6 +8,7 @@ ) where +import Control.Monad import Control.Monad.Logic import System.FilePath ( (</>) ) import qualified Data.List as L
src/internal/Test/Tasty/Sugar/ParamCheck.hs view
@@ -8,6 +8,7 @@ ) where +import Control.Monad import Control.Monad.Logic import qualified Data.List as L import Data.Maybe ( fromMaybe )
src/internal/Test/Tasty/Sugar/RootCheck.hs view
@@ -9,6 +9,7 @@ ) where +import Control.Monad import Control.Monad.Logic import qualified Data.List as L import Data.Maybe ( catMaybes, isNothing )
tasty-sugar.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.0 name: tasty-sugar-version: 1.1.1.0+version: 1.2.0.0 synopsis: Tests defined by Search Using Golden Answer References description: .@@ -64,7 +64,6 @@ , logict >= 0.7.0.3 && < 0.9 , optparse-applicative >= 0.15 && < 0.17 , prettyprinter >= 1.7.0 && < 1.8- , tagged >= 0.8 && < 0.9 , tasty >= 1.2 && < 1.5 , tasty-sugar-internal , text >= 1.2 && < 1.3@@ -92,6 +91,7 @@ , kvitable >= 1.0 && < 1.1 , logict , microlens >= 0.4 && < 0.5+ , mtl >= 2.2 && < 2.3 , prettyprinter >= 1.7 && < 1.8 , text >= 1.2 && < 1.3 hs-source-dirs: src/internal