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
- Modules
- Test.
Spec - Test.
Spec. Assertions - Test.
Spec. Assertions. String - Test.
Spec. Console - Test.
Spec. Reporter - Test.
Spec. Reporter. Base - Test.
Spec. Reporter. Console - Test.
Spec. Reporter. Dot - Test.
Spec. Reporter. Spec - Test.
Spec. Reporter. Tap - Test.
Spec. Reporter. TeamCity - Test.
Spec. Result - Test.
Spec. Runner - Test.
Spec. Runner. Event - Test.
Spec. Speed - Test.
Spec. Style - Test.
Spec. Summary - Test.
Spec. Tree