Kotlin/JUnit advertise the use of backticked function names for tests. I've discovered that you can also use backticked class names...
But I can't find any reference. Is thing something in the Kotlin specification, or just a "may go away soon" unintended feature?
code example:
@Nested
inner class `when the entity path only specifies one location` {
@BeforeEach
fun setup() {
entity = Entity(
id = "entityid1",
name = "entity1",
type = "type",
team = TeamColor.BLUE,
currentLocation = Location(0.0, 10.0, 0.0),
path = EntityPath(
startTime = "00:00:00",
timeLocation = listOf(
TimeLocation("00:00:00", Location(0.0, 10.0, 0.0)),
)
),
)
}
@Test
fun `it returns the first (only) location`() {
val actualLocation = entityLocator.getEntityLocation(entity, calculation);
val expectedLocation = Location(0.0, 10.0, 0.0)
assertEquals(actualLocation, expectedLocation);
}
}