expect_str_contains

Substring search assertion

Passes if the actual String contains the specified substring.

Parameters

Returns

Expect_pass when found; Expect_hold on NA; Expect_stop if missing.

Examples

assert(expect_str_contains("hello world", "world"))

See Also

expect_match