Assert that two values are equal according to ==.
Modulesydtest-0.22.0.0Haskell2010
Test.Syd.Expectation
This module defines all the functions you will use to define your tests
- 2 types
- 25 values
- Packagesydtest-0.22.0.0
- Exports27
- LanguageHaskell2010
- LicenceLicenseRef-OtherLicense
- SourceExpectation.hs
Assert that two values are not equal according to ==.
Assert that a value satisfies the given predicate.
Assert that a value satisfies the given predicate with the given predicate name.
Assert that a value does not satisfy the given predicate.
Assert that a value does not satisfy the given predicate with the given predicate name.
Assert that computation returns the given value (according to ==).
Assert that computation returns the given value (according to ==).
Assert that the given list has the given prefix
Assert that the given list has the given suffix
Assert that the given list has the given infix
Assert that the given list contains all elements from the other given list and only them, perhaps in a different order.
An assertion that says two ByteStrings should have been equal according to ==.
Make a test fail
Note that this is mostly backward compatible, but it has return type a instead of () because execution will not continue beyond this function.
In this way it is not entirely backward compatible with hspec because now there could be an ambiguous type error.
Annotate a given action with a context, for contextual assertions
This is a completely different function from the function with the same name in hspec. In hspec, context is a synonym for describe, but in sydtest, context is used for contextual failures.
For easy hspec migration
For easy hspec migration
Assert that a given IO action throws an exception that matches the given exception