Version bump for #1259
This commit is contained in:
parent
f4b4602500
commit
dae1a34d4c
@ -1,3 +1,7 @@
|
||||
## 1.5.2
|
||||
|
||||
* Added assertEq, deprecated assertEqual [#1259](https://github.com/yesodweb/yesod/pull/1259)
|
||||
|
||||
## 1.5.1.1
|
||||
|
||||
* Fix `addToken_` needing a trailing space and allows multiples spaces in css selector.
|
||||
|
||||
@ -319,6 +319,11 @@ htmlQuery' getter errTrace query = withResponse' getter ("Tried to invoke htmlQu
|
||||
htmlQuery :: Query -> YesodExample site [HtmlLBS]
|
||||
htmlQuery = htmlQuery' yedResponse []
|
||||
|
||||
-- | Asserts that the two given values are equal.
|
||||
--
|
||||
-- In case they are not equal, error mesasge includes the two values.
|
||||
--
|
||||
-- @since 1.5.2
|
||||
assertEq :: (Eq a, Show a) => String -> a -> a -> YesodExample site ()
|
||||
assertEq m a b =
|
||||
liftIO $ HUnit.assertBool msg (a == b)
|
||||
@ -331,6 +336,8 @@ assertEqual :: (Eq a) => String -> a -> a -> YesodExample site ()
|
||||
assertEqual = assertEqualNoShow
|
||||
|
||||
-- | Asserts that the two given values are equal.
|
||||
--
|
||||
-- @since 1.5.2
|
||||
assertEqualNoShow :: (Eq a) => String -> a -> a -> YesodExample site ()
|
||||
assertEqualNoShow msg a b = liftIO $ HUnit.assertBool msg (a == b)
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name: yesod-test
|
||||
version: 1.5.1.1
|
||||
version: 1.5.2
|
||||
license: MIT
|
||||
license-file: LICENSE
|
||||
author: Nubis <nubis@woobiz.com.ar>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user