Module

Test.Spec.Assertions.String

#shouldContain

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

Asserts string contains subs

string `shouldContain` subs

#shouldNotContain

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

Asserts string does not contain subs

string `shouldContain` subs

#shouldStartWith

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

Asserts string starts with prefix

string `shouldStartWith` prefix

#shouldEndWith

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

Asserts string ends with suffix

string `shouldEndWith` suffix

Modules