Copyright | (C) 2024 Bellroy Pty Ltd |
---|---|
License | BSD-3-Clause |
Maintainer | Bellroy Tech Team <haskell@bellroy.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Test.Tasty.Golden.Extra.Internal
Description
Common types and functions used by the other modules in `tasty-golden-extra`.
Synopsis
Documentation
checkJsonDifference :: Value -> Value -> JsonDifference Source #
Compare two JSON values and return a JsonDifference
representing the result.
maybeDifference :: JsonDifference -> Maybe String Source #
Convert a JsonDifference
to a `Maybe String` containing the error message.
data JsonDifference Source #
Represents the result of comparing two JSON values - either the JSON is identical, or there are differences and you are given an error message containing the differences.
Constructors
JsonIdentical | |
JsonDifferent String |