I propose to change `StringSpec` to following code...
# kotlintest
h
I propose to change
StringSpec
to following code. Haven't found a better way to allow
StringSpec
with
init()
and with constructor body.
Copy code
abstract class StringSpec(body: StringSpec.() -> Unit = {}) : TestBase() {
  init { body(this) }

  operator fun String.invoke(test: () -> Unit): TestCase {
    val tc = TestCase(suite = root, name = this, test = test, config = defaultTestCaseConfig)
    root.cases.add(tc)
    return tc
  }
}