StrSubject¶
StrSubject.new¶
Creates a subject for asserting strings.
Method: StrSubject.new
PARAMETERS ¶
- actual¶:
(
str
) the string to check against.- meta¶:
(
ExpectMeta
) of call chain information.
- RETURNS ¶
StrSubject
object.
StrSubject.contains¶
StrSubject.contains(substr)
Assert that the subject contains the substring substr
.
Method: StrSubject.contains
PARAMETERS ¶
StrSubject.equals¶
StrSubject.equals(other)
Assert that the subject string equals the other string.
Method: StrSubject.equals
PARAMETERS ¶
StrSubject.not_equals¶
StrSubject.not_equals(unexpected)
Assert that the string is not equal to unexpected
.
Method: BoolSubject.not_equals
PARAMETERS ¶
StrSubject.split¶
StrSubject.split(sep)
Return a CollectionSubject
for the actual string split by sep
.
Method: StrSubject.split
PARAMETERS ¶
- sep¶:
undocumented