Module str
Expand description
str
Predicate factories
This module contains predicates specific to string handling.
Functionsยง
- contains
- Creates a new
Predicate
that ensures a str containspattern
- diff
- Creates a new
Predicate
that diffs two strings. - ends_
with - Creates a new
Predicate
that ensures a str ends withpattern
- is_
empty - Creates a new
Predicate
that ensures a str is empty - is_
match - Creates a new
Predicate
that uses a regular expression to match the string. - similar
- Creates a new
Predicate
that checks strings for how similar they are. - starts_
with - Creates a new
Predicate
that ensures a str starts withpattern