assert.contains
Asserts that `haystack` contains `needle` as a substring.
Reference version
Signature
function assert.contains(haystack: string, needle: string) -> void
Asserts that haystack contains needle as a substring.
Parameters
haystack: The string to search within.needle: The substring to search for.
Panics
baml.panics.AssertionFailedwhenhaystackdoes not containneedleas a substring.
Source:<builtin>/assert/assert.bamlbytes 3310–3570