Skip to content

predicate every item of an array #2212

Open
@NingGelin

Description

@NingGelin

Problem to solve

If i have array like [1, 2, 1, 1, 1], i want to determine every item of this array equal to 1. Existing assertion functions don't seem to support it.

Proposal

Or whether can you provide an extension interface that user can extend the predicate to meet self requirement. sorry i ever haven't used Rust, so I cannot contribute a PR to support it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions