Description

Contains asserts that the specified string, list(array, slice...) or map contains the specified substring or element.

a.Contains("Hello World", "World", "But 'Hello World' does contain 'World'")
a.Contains(["Hello", "World"], "World", "But ["Hello", "World"] does contain 'World'")
a.Contains({"Hello": "World"}, "Hello", "But {'Hello': 'World'} does contain 'Hello'")

Returns whether the assertion was successful (true) or not (false).

Contains is referenced in 0 repositories