Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify expect! and expect_file! types #49

Open
cpud36 opened this issue Sep 26, 2024 · 0 comments
Open

Unify expect! and expect_file! types #49

cpud36 opened this issue Sep 26, 2024 · 0 comments

Comments

@cpud36
Copy link

cpud36 commented Sep 26, 2024

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),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant