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

[nice to have] Would be very nice to have a BeAnArray matcher #584

Open
eriknyk opened this issue Sep 1, 2022 · 1 comment
Open

[nice to have] Would be very nice to have a BeAnArray matcher #584

eriknyk opened this issue Sep 1, 2022 · 1 comment

Comments

@eriknyk
Copy link

eriknyk commented Sep 1, 2022

Would be very nice to have a BeAnArray matcher since we have similar Matchers like

.Should(BeADirectory())
.Should(BeARegularFile())
.Should(BeEmpty())

Would be Nice

.Should(BeAnArray(...))

This can be helpful when a variable has type any = interface{} it can be help to identify if the variable type is an expected array


Best Regards.

@onsi
Copy link
Owner

onsi commented Sep 1, 2022

Hey there - happy to accept a PR for this if you have the bandwidth to put one together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants