packages feed

sydtest-mongo 0.1.0.0 → 0.2.0.0

raw patch · 3 files changed

+12/−5 lines, 3 files

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.0] - 2024-10-30++### Added++* Compatibility with `sydtest >= 0.18`+ ## [0.1.0.0] - 2024-08-04  ### Changed
src/Test/Syd/MongoDB.hs view
@@ -59,10 +59,11 @@         ensureDir (parent ap)         SB.writeFile (fromAbsFile ap) $ LB.toStrict $ runPut $ putDocument d,       goldenTestCompare = \actual expected ->-        pure $-          if actual == expected-            then Nothing-            else Just (Context (stringsNotEqualButShouldHaveBeenEqual (ppShow actual) (ppShow expected)) (goldenContext fp))+        if actual == expected+          then pure Nothing+          else do+            assertion <- stringsNotEqualButShouldHaveBeenEqual (ppShow actual) (ppShow expected)+            pure $ Just (Context assertion (goldenContext fp))     }  -- | Test that the given 'Bson.Document' is the same as what we find in the given golden file.
sydtest-mongo.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           sydtest-mongo-version:        0.1.0.0+version:        0.2.0.0 synopsis:       An mongoDB companion library for sydtest category:       Testing homepage:       https://github.com/NorfairKing/sydtest#readme