Copyright | (c) Pawel Nosal 2021 |
---|---|
License | MIT |
Maintainer | p.nosal1986@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions |
|
This library aims to provide a set of combinators to assert Maybe type.
Synopsis
- isNothing :: HasCallStack => Assertion (Maybe a)
- isJust :: HasCallStack => Assertion (Maybe a)
- extracting :: HasCallStack => Assertion' (Maybe a) a
Documentation
isNothing :: HasCallStack => Assertion (Maybe a) Source #
assert if subject under is empty
assertThat (Just 10) isNothing
isJust :: HasCallStack => Assertion (Maybe a) Source #
assert if subject under is not empty
assertThat (Just 10) isJust
extracting :: HasCallStack => Assertion' (Maybe a) a Source #
assert if subject under is not empty and extract contained value
assertThat (Just 10) extracting