← Back to context

Comment by yen223

4 hours ago

Kotlin has an interesting approach to solving this. You can name functions using backticks, and in those backticks you can put basically anything.

So it's common to see unit tests like

  @Test
  fun `this tests something very complicated`() {
    ...
  }

You can do that in Java as well. Can't remember if it's exactly the same syntax