Modulehspec-expectations-lifted-0.10.0Haskell98
Test.Hspec.Expectations.Lifted
Introductory documentation: https://github.com/hspec/hspec-expectations#readme
- 1 type
- 12 values
- Packagehspec-expectations-lifted-0.10.0
- Exports13
- LanguageHaskell98
- LicenceMIT
- SourceLifted.hs
Setting expectations
12 declarationsactual `shouldBe` expected sets the expectation that actual is equal
to expected.
v `shouldSatisfy` p sets the expectation that p v is True.
list `shouldStartWith` prefix sets the expectation that list starts with prefix,
list `shouldEndWith` suffix sets the expectation that list ends with suffix,
list `shouldContain` sublist sets the expectation that sublist is contained,
wholly and intact, anywhere in list.
xs `shouldMatchList` ys sets the expectation that xs has the same
elements that ys has, possibly in another order
action `shouldReturn` expected sets the expectation that action
returns expected.
actual `shouldNotBe` notExpected sets the expectation that actual is not
equal to notExpected
v `shouldNotSatisfy` p sets the expectation that p v is False.
list `shouldNotContain` sublist sets the expectation that sublist is not
contained anywhere in list.
action `shouldNotReturn` notExpected sets the expectation that action
does not return notExpected.
Re-exports
1 declarationRequest a CallStack.
NOTE: The implicit parameter ?callStack :: CallStack is an
implementation detail and should not be considered part of the
CallStack API, we may decide to change the implementation in the
future.