Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Regex matching in OutputAssertionBuilder #81

Description

@Mike-Neto

Regular expression matching in OutputAssertionBuilder.

so something like this is posible:

let re = Regex::new("[0-9]{2}").unwrap();
assert_cli::Assert::command(&["echo", "42"])
    .stdout().matches(re)
    .unwrap();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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