Merge branch 'patch-1' of https://github.com/friedbrice/yesod
This commit is contained in:
commit
99c1fd49a3
@ -4,6 +4,7 @@
|
||||
|
||||
* Fix quotes not matching in htmlContain* functions [#1768](https://github.com/yesodweb/yesod/pull/1768).
|
||||
* Add logging of the matches found of these functions [#1768](https://github.com/yesodweb/yesod/pull/1768).
|
||||
* Improved failure messages from `assertEq`. [#1767](https://github.com/yesodweb/yesod/pull/1767)
|
||||
|
||||
## 1.6.13
|
||||
|
||||
|
||||
@ -546,10 +546,8 @@ htmlQuery = htmlQuery' yedResponse []
|
||||
-- @since 1.5.2
|
||||
assertEq :: (HasCallStack, Eq a, Show a) => String -> a -> a -> YesodExample site ()
|
||||
assertEq m a b =
|
||||
liftIO $ HUnit.assertBool msg (a == b)
|
||||
where msg = "Assertion: " ++ m ++ "\n" ++
|
||||
"First argument: " ++ ppShow a ++ "\n" ++
|
||||
"Second argument: " ++ ppShow b ++ "\n"
|
||||
liftIO $ HUnit.assertEqual msg a b
|
||||
where msg = "Assertion: " ++ m ++ "\n"
|
||||
|
||||
-- | Asserts that the two given values are not equal.
|
||||
--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user