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
We could easily enhance Should Contain so that if the container (i.e. the first argument) is bytes and the item to check (i.e. the second argument) is a string, we convert the latter to bytes. In practice it would just require something like below (plus tests and docs):
Thanks for the PR @droeland. It looks pretty good, but there are some smallish things that could be still enhanced. See the PR review for more details.
To use
Should Contains
with bytes, item that is searched needs to be first converted to bytes.result:
for int the value is converted automatically:
this fails with:
this is expected.
The text was updated successfully, but these errors were encountered: