packages feed

mockcat 0.5.0.0 → 0.5.1.0

raw patch · 2 files changed

+16/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

mockcat.cabal view
@@ -5,13 +5,19 @@ -- see: https://github.com/sol/hpack  name:           mockcat-version:        0.5.0.0+version:        0.5.1.0 synopsis:       Mock library for test in Haskell.-description:    mockcat is a mock library for testing Haskell.+description:    mockcat is a flexible and powerful mock library.                 .-                mockcat provides monad type class generation and stub and verification functions.+                It provides the following main features.                 .-                Stub functions can return values of pure types as well as values of monad types.+                - Mock generation of monadic typeclasses+                .+                - Generation of stub functions independent of typeclasses+                .+                - Verification of stub functions+                .+                Stub functions can return not only values of monadic types, but also pure types.                 .                 For more please see the README on GitHub at <https://github.com/pujoheadsoft/mockcat#readme> category:       Testing
test/Test/MockCat/ExampleSpec.hs view
@@ -63,6 +63,12 @@   it "echo3" do     result <- runMockT do       _readTTY $ casesIO ["a", ""]+      _writeTTY $ "a" |> pure @IO ()+      echo+    result `shouldBe` ()++  it "echo4" do+    result <- runMockT do       _readTTY $ cases [ pure @IO "a", pure @IO "" ]       _writeTTY $ "a" |> pure @IO ()       echo