abstract class BaseTreeDumpTest
Compare a dump of a file against a saved baseline.
printer
- The node printer used to dump the trees
extension
- Extension that the unparsed source file is supposed to have
<init> |
Compare a dump of a file against a saved baseline. BaseTreeDumpTest(printer: TreeRenderer, extension: String) |
extension |
Extension that the unparsed source file is supposed to have val extension: String |
parser |
abstract val parser: BaseParsingHelper<*, *> |
printer |
The node printer used to dump the trees val printer: TreeRenderer |
doTest |
Executes the test. The test files are looked up using the parser. The reference test file must be named fileBaseName + ExpectedExt. The source file to parse must be named fileBaseName + extension. fun doTest(fileBaseName: String): Unit |
ExpectedExt |
const val ExpectedExt: String |
normalize |
fun String.normalize(): String |