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

Add a test case for #388 #591

Closed
wants to merge 1 commit into from
Closed

Add a test case for #388 #591

wants to merge 1 commit into from

Conversation

ikesyo
Copy link
Member

@ikesyo ikesyo commented Aug 8, 2018

Ref: #388

@ikesyo
Copy link
Member Author

ikesyo commented Aug 8, 2018

We should test this here instead:

func testAllPassCollectionsWithOptionalsDontWork() {
failsWithErrorMessage("expected to all be nil, but failed first at element <nil> in <[nil, nil, nil]>") {
expect([nil, nil, nil] as [Int?]).to(allPass(beNil()))
}
failsWithErrorMessage("expected to all pass a condition, but failed first at element <nil> in <[nil, nil, nil]>") {
expect([nil, nil, nil] as [Int?]).to(allPass({$0 == nil}))
}
}

@ikesyo ikesyo closed this Aug 8, 2018
@ikesyo ikesyo deleted the issue388-test-case branch August 8, 2018 04:58
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