From 0f2b5b5b77df261a0c349046b1665c7fd3d91d28 Mon Sep 17 00:00:00 2001 From: Vladislav Rassokhin Date: Thu, 23 Mar 2023 10:54:25 +0100 Subject: [PATCH] Prepare for restart check in all lexer tests Don't use `LexerTestCase.doTest(String, String, Lexer)` without need GitOrigin-RevId: b15679a15e28e3f67dba0149dfa075913f35fe4b --- .../src/test/kotlin/org/toml/lang/lexer/LexerTestCaseBase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/toml/core/src/test/kotlin/org/toml/lang/lexer/LexerTestCaseBase.kt b/plugins/toml/core/src/test/kotlin/org/toml/lang/lexer/LexerTestCaseBase.kt index 6761242da27c..44870e6a932e 100644 --- a/plugins/toml/core/src/test/kotlin/org/toml/lang/lexer/LexerTestCaseBase.kt +++ b/plugins/toml/core/src/test/kotlin/org/toml/lang/lexer/LexerTestCaseBase.kt @@ -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) {