Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add String.doesNotContain #291

Open
StefMa opened this issue May 5, 2023 · 1 comment
Open

Add String.doesNotContain #291

StefMa opened this issue May 5, 2023 · 1 comment

Comments

@StefMa
Copy link

StefMa commented May 5, 2023

I jsut realized an assertion on String.contains("") exist.
I think it is usefull to add also an String.doesNotContain("").

expectThat("Something").contains("S") // true
expectThat("Something").doesNotContain("S") // false
@StefMa StefMa changed the title Add String.doesNotContain Add String.doesNotContain May 5, 2023
@dump247
Copy link
Contributor

dump247 commented Jun 2, 2023

You should be able to do .not().contains("string") or .not { contains("string") }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants