We are writing a DSL in Kotlin, and we have added a few restrictions in that DSL. For eg,
table {
tr {
td {
}
}
}
Here, we restrict td
should not be called inside another td
.
How do we test this? Is there any dsl-testkit or matcher library in kotlin that lets us do something like "shouldNot compile" does in scalatest
Aucun commentaire:
Enregistrer un commentaire