Prepare for restart check in all lexer tests

Don't use `LexerTestCase.doTest(String, String, Lexer)` without need

GitOrigin-RevId: b15679a15e28e3f67dba0149dfa075913f35fe4b
This commit is contained in:
Vladislav Rassokhin
2023-03-23 12:02:15 +00:00
committed by intellij-monorepo-bot
parent c200315703
commit 0f2b5b5b77
@@ -27,7 +27,7 @@ abstract class LexerTestCaseBase : LexerTestCase(), TestCase {
// NOTE(matkad): this is basically a copy-paste of doFileTest.
// The only difference is that encoding is set to utf-8
protected fun doTest(lexer: Lexer = createLexer()) {
protected fun doTest() {
val filePath = pathToSourceTestFile()
var text = ""
try {
@@ -36,7 +36,7 @@ abstract class LexerTestCaseBase : LexerTestCase(), TestCase {
} catch (e: IOException) {
fail("can't load file " + filePath + ": " + e.message)
}
doTest(text, null, lexer)
doTest(text, null)
}
override fun doTest(@NonNls text: String, expected: String?, lexer: Lexer) {