Module

Test.Spec.Assertions.String

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

#shouldContain Source

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

Asserts string contains subs

string `shouldContain` subs

#shouldNotContain Source

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

Asserts string does not contain subs

string `shouldContain` subs

#shouldStartWith Source

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

Asserts string starts with prefix

string `shouldStartWith` prefix

#shouldEndWith Source

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

Asserts string ends with suffix

string `shouldEndWith` suffix