Skip to content

Option contains_value_matching and related assertions #69

Description

@florian1345

Add assertions for Option-values to check whether they contain a value matching a given predicate (or not). Suggested variants:

  • contains_value_matching: Passes if value is Some(x) and x matches the predicate.
  • contains_value_not_matching: Passes if value is Some(x) and x does not match the predicate.
  • does_not_contain_value_matching: Passes if value is None or Some(x) and x does not match the predicate.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions