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

CharSequence contains.regex should mention regex in reporting #23

Closed
robstoll opened this issue Jun 9, 2018 · 0 comments
Closed

CharSequence contains.regex should mention regex in reporting #23

robstoll opened this issue Jun 9, 2018 · 0 comments

Comments

@robstoll
Copy link
Owner

robstoll commented Jun 9, 2018

Affected Version: 0.6.0

How to reproduce the problem

Consider the following code snippet

assert("hello").containsRegex("^[A-Z][a-z]+[A-Z]$")

The output is:

assert: "hello"        <2010366935>
◆ contains: "^[A-Z][a-z]+[A-Z]$"

We can assume that one searched with the help of a regex but we cannot be sure. It would be better if the output states something like contains value matching regex

robstoll added a commit that referenced this issue Jul 16, 2018
In 0.6.0 we used `contains ...`, we improved to `contains value...`
by now but this is not enough for contains regex. Thus:
- use `contains: string matching regex`
- resolves #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant