roc/test/snapshots/repl/str_contains.md
2025-11-25 17:31:13 +01:00

447 B

META

description=Str.contains should work with various string combinations
type=repl

SOURCE

» Str.contains("foobarbaz", "bar")
» Str.contains("apple", "orange")
» Str.contains("anything", "")
» Str.contains("hello world", "hello")
» Str.contains("hello world", "world")
» Str.contains("test", "test")
» Str.contains("", "hello")

OUTPUT

True

False

True

True

True

True

False

PROBLEMS

NIL