mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
added tests on typing after single/double quote without pairing one
This commit is contained in:
@@ -97,6 +97,18 @@ public class JavaReformatOnTypingTest extends LightPlatformCodeInsightFixtureTes
|
||||
"class X { String s = \"xxxxx=x<caret>\"; }");
|
||||
}
|
||||
|
||||
public void test_InsideStringLiteral() {
|
||||
doTest("class X { String x = \"x<caret> }", "=y", "class X { String x = \"x=y<caret> }");
|
||||
}
|
||||
|
||||
public void test_InsideCharLiteral() {
|
||||
doTest("class X { char x = '<caret>'; }", "=", "class X { char x = '='; }");
|
||||
}
|
||||
|
||||
public void test_AfterOpenedBracket() {
|
||||
doTest("class X { char x = '<caret> }", "='", "class X { char x = '=' }");
|
||||
}
|
||||
|
||||
public void test_DistinguishAssignmentAndEquality() {
|
||||
doTest("class T { boolean b = 1 <caret> }", "==", "class T { boolean b = 1 ==<caret> }");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user