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

all in combination with atLeast doesn't compose nicely #253

Closed
arian opened this issue Nov 8, 2019 · 0 comments · Fixed by #254
Closed

all in combination with atLeast doesn't compose nicely #253

arian opened this issue Nov 8, 2019 · 0 comments · Fixed by #254
Labels

Comments

@arian
Copy link

arian commented Nov 8, 2019

        val list = listOf(1, 2, 3, -4)

        assertThat(list).all {
            hasSize(4)
            exactly(3) {
                it.isPositive()
            }
        }

this fails... while intuitively it should be the same as:

        val list = listOf(1, 2, 3, -4)

        assertThat(list).hasSize(4)
        assertThat(list).exactly(3) { it.isPositive() }

that passes..

@evant evant added the bug label Nov 8, 2019
evant added a commit that referenced this issue Nov 8, 2019
Before pushing a soft failure when there was none would be ignored. This
causes a problem when using the failIf feature as that condition will be
ignored too.

Fixes #253
@evant evant closed this as completed in #254 Nov 8, 2019
evant added a commit that referenced this issue Nov 8, 2019
Before pushing a soft failure when there was none would be ignored. This
causes a problem when using the failIf feature as that condition will be
ignored too.

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

Successfully merging a pull request may close this issue.

2 participants