tasty-checklist 1.0.3.0 → 1.0.4.0
raw patch · 4 files changed
+36/−9 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- LICENSE +13/−0
- src/Test/Tasty/Checklist.hs +15/−7
- tasty-checklist.cabal +3/−2
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for tasty-checklist +## 1.0.4.0 -- 2022-08-09+ * Added explicit LICENSE file+ * Updated failure messages for clarity and readability+ * Misc. Haddock documentation updates.+ ## 1.0.3.0 -- 2021-08-13 * Bump doctest upper constraints (contributed by Felix Yan) * Added missing doctest source
+ LICENSE view
@@ -0,0 +1,13 @@+Copyright (c) 2021-2022 Kevin Quick++Permission to use, copy, modify, and/or distribute this software for any purpose+with or without fee is hereby granted, provided that the above copyright notice+and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS+OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF+THIS SOFTWARE.
src/Test/Tasty/Checklist.hs view
@@ -82,7 +82,7 @@ instance Show CheckResult where show (CheckFailed what msg) =- "Failed check of " <> T.unpack what <> " with " <> T.unpack msg+ "Failed check of " <> T.unpack what <> " with: " <> T.unpack msg instance Show ChecklistFailures where show (ChecklistFailures topMsg fails) =@@ -143,8 +143,8 @@ -- odd numbers: FAIL -- Exception: ERROR: odds -- 2 checks failed in this checklist:--- -Failed check of two is odd with 2--- -Failed check of 7 + 3 is odd with 10+-- -Failed check of two is odd with: 2+-- -Failed check of 7 + 3 is odd with: 10 -- <BLANKLINE> -- 1 out of 1 tests failed (...s) -- *** Exception: ExitFailure 1@@ -256,9 +256,15 @@ -- someFun result: FAIL -- Exception: ERROR: results for someFun -- 3 checks failed in this checklist:--- -Failed check of foo on input <<The answer to the universe is 18?>> expected <<42>> but failed with 18--- -Failed check of shown on input <<The answer to the universe is 18?>> expected <<"The answer to the universe is 42!">> but failed with "The answer to the universe is 18?"--- -Failed check of double-checking foo on input <<The answer to the universe is 18?>> expected <<42>> but failed with 18+-- -Failed check of foo on input <<The answer to the universe is 18?>>+-- expected: 42+-- failed with: 18+-- -Failed check of shown on input <<The answer to the universe is 18?>>+-- expected: "The answer to the universe is 42!"+-- failed with: "The answer to the universe is 18?"+-- -Failed check of double-checking foo on input <<The answer to the universe is 18?>>+-- expected: 42+-- failed with: 18 -- <BLANKLINE> -- 1 out of 1 tests failed (...s) -- *** Exception: ExitFailure 1@@ -280,7 +286,9 @@ chkValue got _idx = \case (Val txt fld v) -> let r = fld got- msg = txt <> " on input <<" <> ti <> ">> expected <<" <> tv <> ">> but failed"+ msg = txt <> " on input <<" <> ti <> ">>\n"+ <> " " <> "expected: " <> tv <> "\n"+ <> " " <> "failed" ti = T.pack (testShow got) tv = T.pack (testShow v) in check msg (v ==) r
tasty-checklist.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: tasty-checklist-version: 1.0.3.0+version: 1.0.4.0 synopsis: Check multiple items during a tasty test description: Allows the test to check a number of items during a test and@@ -10,9 +10,10 @@ a single input value. -- bug-reports: license: ISC+license-file: LICENSE author: Kevin Quick maintainer: kquick@galois.com-copyright: Kevin Quick, 2021+copyright: Kevin Quick, 2021-2022 category: Testing extra-source-files: CHANGELOG.md