Skip to content

Unify expect! and expect_file! types #49

@cpud36

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),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions