I found an error that is really similar to #253 but seems a little different.
assertThat(listOf("abc", "def")).all {
hasSize(2)
exactly(2) {
it.hasLength(3)
}
}
does pass in v22, but you can change the exactly(2) to exactly(1) or even exactly(3), and it still passes.
Splitting hasSize(2) and exactly(x) into two assertions fixes the problem. Only exactly(2) passes--1 and 3 fail.
I found an error that is really similar to #253 but seems a little different.
does pass in v22, but you can change the
exactly(2)toexactly(1)or evenexactly(3), and it still passes.Splitting
hasSize(2)andexactly(x)into two assertions fixes the problem. Onlyexactly(2)passes--1 and 3 fail.