Module

Test.Spec.Assertions

Package
purescript-spec
Repository
purescript-spec/purescript-spec

#fail Source

fail :: forall m. MonadThrow Error m => String -> m Unit

#shouldEqual Source

shouldEqual :: forall t m. MonadThrow Error m => Show t => Eq t => t -> t -> m Unit

#shouldNotEqual Source

shouldNotEqual :: forall t m. MonadThrow Error m => Show t => Eq t => t -> t -> m Unit

#shouldContain Source

shouldContain :: forall a f m. MonadThrow Error m => Show a => Eq a => Show (f a) => Foldable f => f a -> a -> m Unit

#shouldNotContain Source

shouldNotContain :: forall a f m. MonadThrow Error m => Show a => Eq a => Show (f a) => Foldable f => f a -> a -> m Unit

#shouldNotSatisfy Source

shouldNotSatisfy :: forall t m. MonadThrow Error m => Show t => t -> (t -> Boolean) -> m Unit

#shouldSatisfy Source

shouldSatisfy :: forall t m. MonadThrow Error m => Show t => t -> (t -> Boolean) -> m Unit

#expectError Source

expectError :: forall t m. MonadError Error m => m t -> m Unit

#shouldReturn Source

shouldReturn :: forall t m. MonadThrow Error m => Eq t => Show t => m t -> t -> m Unit

Asserts that m t returns t

#shouldNotReturn Source

shouldNotReturn :: forall t m. MonadThrow Error m => Eq t => Show t => m t -> t -> m Unit

Asserts that m t does not return t