natpryce
11/23/2018, 4:30 PMval `my tests` = context<MutableList<Int>> {
fixture { mutableListOf<Int>() }
test("is created empty") {
assertTrue(isEmpty)
}
// ... and so on
}
But would functions be a better choice?
fun `my tests`() = context<MutableList<Int>> {
fixture { mutableListOf<Int>() }
test("is created empty") {
assertTrue(isEmpty)
}
// ... and so on
}
Functions add a tiny bit of extra syntax noise, but it’s not the end of the world…
Or the engine could support both.