Kotlin Back-Tick in Method Names: How Does It Work?

In Kotlin, you can name a method using reverse ticks, for example:

fun `i am a test method`(){
   Assert.assertEquals("x", "x")
}

The compiler generates a method with underscores instead of spaces: "i_am_a_test_method", which seems reasonable since the JVM does not allow methods with spaces afaik. How can Junit and / or Gradle report these tests using a reverse name?

+4
source share
1 answer

Java- , [ ( ) / ;. , ; . .

+5

Source: https://habr.com/ru/post/1683937/


All Articles