mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[grazie] LLM-20880 Fix spellchecking related tests
Merge-request: IJ-MR-181215 Merged-by: Ilia Permiashkin <ilia.permiashkin@jetbrains.com> GitOrigin-RevId: b9d927136bc786c62e5541d24d00d517e9cc0ede
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b791b93d48
commit
3c1cf56332
@@ -7,6 +7,7 @@ import com.intellij.grazie.text.TextContentBuilder
|
||||
import com.intellij.grazie.text.TextExtractor
|
||||
import com.intellij.grazie.utils.Text
|
||||
import com.intellij.grazie.utils.getNotSoDistantSimilarSiblings
|
||||
import com.intellij.grazie.utils.replaceBackslashEscapedWhitespace
|
||||
import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.impl.source.tree.PsiCommentImpl
|
||||
import com.intellij.psi.util.elementType
|
||||
@@ -48,6 +49,7 @@ internal class KotlinTextExtractor : TextExtractor() {
|
||||
.withUnknown { it is KtStringTemplateEntryWithExpression }
|
||||
.removingIndents(" \t|").removingLineSuffixes(" \t")
|
||||
.build(root, LITERALS)
|
||||
?.replaceBackslashEscapedWhitespace()
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
+5
@@ -281,6 +281,11 @@ public abstract class InspectionTestGenerated extends AbstractInspectionTest {
|
||||
runTest("testData/inspections/sealedSubClassCanBeObject/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("spelling/inspectionData/inspections.test")
|
||||
public void testSpelling_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("testData/inspections/spelling/inspectionData/inspections.test");
|
||||
}
|
||||
|
||||
@TestMetadata("unusedEquals/inspectionData/inspections.test")
|
||||
public void testUnusedEquals_inspectionData_Inspections_test() throws Exception {
|
||||
runTest("testData/inspections/unusedEquals/inspectionData/inspections.test");
|
||||
|
||||
-1
@@ -638,7 +638,6 @@ private fun assembleWorkspace(): TWorkspace = workspace(KotlinPluginMode.K1) {
|
||||
model("inspections", pattern = Patterns.forRegex("^(inspections\\.test)$"), flatten = true,
|
||||
excludedDirectories = listOf(
|
||||
"canConvertToMultiDollarString", // K2-only
|
||||
"spelling/inspectionData",
|
||||
)
|
||||
)
|
||||
model("inspectionsLocal", pattern = Patterns.forRegex("^(inspections\\.test)$"), flatten = true)
|
||||
|
||||
@@ -1 +1 @@
|
||||
('\ncorrect' r'\ncorrect')
|
||||
('\ncorrect' r'\<TYPO descr="Typo: In word 'ncorrect'">ncorrect</TYPO>')
|
||||
@@ -46,7 +46,7 @@ public class PySpellCheckerTest extends PyTestCase {
|
||||
}
|
||||
|
||||
// PY-20987
|
||||
public void _testEscapesInRawAndNormalGluedStringElements() {
|
||||
public void testEscapesInRawAndNormalGluedStringElements() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user