Skip to content

Unify expect! and expect_file! types #49

Description

@cpud36

I want to use check pattern, but allow the user to select, whether to use inline expect! macro and the outline expect_file! macro.
But these return different types: Expect, and ExpectFile respectively. Would you mind merging this into a common api?

E.g.

// Maybe rename these to `Expect`, `ExpectInline` and `ExpectFile` respectively
pub enum ExpectAny {
    Inline(Expect),
    File(ExpectFile),
}

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions