assert_has multimethod

Methods

assert_has(actual:Any, expected:Any, title:Str=null) Source: autoload/test.ngs:213
Assert having specific element or substring (checks with "has"). Throws TestFail.

Returns

actual

Example

assert_has("abc", "xyz")  # Throws TestFail
assert_has([1,2,3], 3)    # OK