doc / ch.tutteli.atrium.api.infix.en_GB / it

it

inline val <T> Expect<T>.it: Expect<T> (source)

Inline property referring actually to this and allows to write infix assertions within an assertion group block

For instance, instead of:

expect("hello world") {
  this startsWith "hello"
  this ends with "world"
}

You can write

expect("hello world") {
  it startsWith "hello"
  it ends with "world"
}

Return
this

Since
0.12.0