You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
includes tests if a value is included in a collection, while contains test if a string/byte array is contained in a string/byte array.
We could merge the two predicates an only use contains to simplify the grammar (see https://hurl.dev/docs/asserting-response.html#predicates)
The text was updated successfully, but these errors were encountered:
While I do like this idea, one reason to NOT to do it (just brainstorming) might be to make contains behave as an inner string/byte array search regardless of type and keep includes as equality in an array/object. For example, you could have this array:
includes
tests if a value is included in a collection, whilecontains
test if a string/byte array is contained in a string/byte array.We could merge the two predicates an only use
contains
to simplify the grammar (see https://hurl.dev/docs/asserting-response.html#predicates)The text was updated successfully, but these errors were encountered: