tasty-sugar 2.2.1.0 → 2.2.2.0
raw patch · 3 files changed
+13/−9 lines, 3 filesdep ~hedgehogdep ~kvitablePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: hedgehog, kvitable
API changes (from Hackage documentation)
- Test.Tasty.Sugar: data CUBE
+ Test.Tasty.Sugar: data () => CUBE
- Test.Tasty.Sugar: data CandidateFile
+ Test.Tasty.Sugar: data () => CandidateFile
- Test.Tasty.Sugar: data Expectation
+ Test.Tasty.Sugar: data () => Expectation
- Test.Tasty.Sugar: data ParamMatch
+ Test.Tasty.Sugar: data () => ParamMatch
- Test.Tasty.Sugar: data Sweets
+ Test.Tasty.Sugar: data () => Sweets
Files
- CHANGELOG.md +4/−0
- src/internal/Test/Tasty/Sugar/Report.hs +6/−6
- tasty-sugar.cabal +3/−3
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for tasty-sugar +## 2.2.2.0 -- 2024-09-20++ * Bump constraints to use kvitable 1.1.+ ## 2.2.1.0 -- 2023-06-28 * Allow optparse-applicative 0.18, tasty 1.5, and hedgehog 1.4 packages.
src/internal/Test/Tasty/Sugar/Report.hs view
@@ -13,8 +13,8 @@ import Data.KVITable.Render.ASCII ( render , defaultRenderConfig , RenderConfig(..) )+import Data.String ( fromString ) import Data.Text ( Text )-import qualified Data.Text as T import Lens.Micro ( (&), (.~) ) import qualified Prettyprinter as PP import System.FilePath ( takeFileName )@@ -30,11 +30,11 @@ let t = fromList $ concatMap (\s -> [- ( ("base", T.pack $ rootBaseName s)- : ("rootFile", T.pack $ rootFile s)- : [ (T.pack pn, T.pack $ show $ PP.pretty pv)+ ( ("base", fromString $ rootBaseName s)+ : ("rootFile", fromString $ rootFile s)+ : [ (fromString pn, fromString $ show $ PP.pretty pv) | (pn,pv) <- expParamsMatch e ]- <> [ (T.pack an, T.pack $ takeFileName af)+ <> [ (fromString an, fromString $ takeFileName af) | (an,af) <- associated e ] , takeFileName (expectedFile e) )@@ -52,7 +52,7 @@ let cfg = defaultRenderConfig { rowGroup = "base" : "rootFile"- : (T.pack . fst <$> take 1 (validParams $ head c))+ : (fromString . fst <$> take 1 (validParams $ head c)) , rowRepeat = False } in render cfg $ sweetsKVITable s
tasty-sugar.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.0 name: tasty-sugar-version: 2.2.1.0+version: 2.2.2.0 synopsis: Tests defined by Search Using Golden Answer References description: .@@ -131,7 +131,7 @@ , directory , filepath , filemanip- , kvitable >= 1.0 && < 1.1+ , kvitable >= 1.1.0.0 && < 1.2 , logict , microlens >= 0.4 && < 0.5 , mtl@@ -168,7 +168,7 @@ Sample1 build-depends: base >= 4 , filepath- , hedgehog >= 1.1 && < 1.4+ , hedgehog >= 1.1 && < 1.5 , logict , pretty-show >= 1.9 && < 1.11 , prettyprinter