sydtest 0.7.0.0 → 0.7.0.1
raw patch · 3 files changed
+8/−2 lines, 3 files
Files
- CHANGELOG.md +6/−0
- src/Test/Syd/Expectation.hs +1/−1
- sydtest.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.7.0.1] - 2021-12-23++### Changed++* Fixed `shouldStartWith` to test on the prefix rather then infix+ ## [0.7.0.0] - 2021-12-15 ### Added
src/Test/Syd/Expectation.hs view
@@ -67,7 +67,7 @@ -- | Assert that the given list has the given prefix shouldStartWith :: (HasCallStack, Show a, Eq a) => [a] -> [a] -> Expectation-shouldStartWith a i = shouldSatisfyNamed a ("has infix\n" <> ppShow i) (isInfixOf i)+shouldStartWith a i = shouldSatisfyNamed a ("has prefix\n" <> ppShow i) (isPrefixOf i) infix 1 `shouldStartWith`
sydtest.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: sydtest-version: 0.7.0.0+version: 0.7.0.1 synopsis: A modern testing framework for Haskell with good defaults and advanced testing features. description: A modern testing framework for Haskell with good defaults and advanced testing features. Sydtest aims to make the common easy and the hard possible. See https://github.com/NorfairKing/sydtest#readme for more information. category: Testing