It says in the docs: `Block assertions do _not_ fa...
# strikt
d
It says in the docs:
Block assertions do _not_ fail fast.
but if I use:
Copy code
expectThat(result) {
  get(Foo::prop1)...
  get(Foo::prop2)...
}
It seems to only print out the first check's result... 🤔
r
That shouldn’t be the case. If you have an example that recreates it I can try to fix it
d
I think when you use get to test a few properties?
Maybe only assertions are not fail fast, but conversions and lookups are?
Funny, this kotlin scratch DOES work:
Copy code
import strikt.api.expectThat
import strikt.assertions.isEqualTo

data class Foo(val p1: String, val p2: String)

val f1 = Foo("one", "two")
val f2 = Foo("two", "two")

expectThat(f1) {
    get(Foo::p2).isEqualTo(f2.p2)
    get(Foo::p1).isEqualTo(f2.p1)
}
I wonder what's different by me...?
I'll DM you the code