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

Fix collection assertions with Should #2513

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Jun 26, 2024

Should-Any was not passing when at least one item was passing the predicate, because output is $null when you run with Should-* assertion in the predicate, and it does not fail. But that was converted to $false, and so the item did not pass.

@nohwnd nohwnd merged commit 337c213 into main Jun 26, 2024
11 checks passed
@nohwnd nohwnd deleted the fix-collection-assertions branch June 26, 2024 16:37
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

Successfully merging this pull request may close these issues.

1 participant