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 is (not) len ... #81

Closed
Tracked by #75
luke-biel opened this issue Jan 27, 2022 · 0 comments · Fixed by #97
Closed
Tracked by #75

Add is (not) len ... #81

luke-biel opened this issue Jan 27, 2022 · 0 comments · Fixed by #97
Labels
enhancement New feature or request good first issue Good for newcomers
Projects

Comments

@luke-biel
Copy link
Collaborator

luke-biel commented Jan 27, 2022

As an user of test case I want to be able to test for lenght of actual value within complex assertions, eg.:

#[test_case(b"1" => is len 1)]
fn test_this(s: &[u8]) -> &[u8] {
	s
}

This feature can use simple #expr.len() and assume user uses type that supplies len method

@luke-biel luke-biel changed the title (not) len - tested function can just return length Add is (not) len` Jan 27, 2022
@luke-biel luke-biel changed the title Add is (not) len` Add is (not) len ... Jan 27, 2022
@luke-biel luke-biel added enhancement New feature or request good first issue Good for newcomers labels Jan 27, 2022
@luke-biel luke-biel added this to To do in 2.1.0 Apr 22, 2022
@luke-biel luke-biel linked a pull request Apr 25, 2022 that will close this issue
@luke-biel luke-biel moved this from To do to Done in 2.1.0 Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
No open projects
2.1.0
Done
Development

Successfully merging a pull request may close this issue.

1 participant