_testStringBeforeAnotherStringShouldNotIncreaseIndentOfTheFollowingString

This commit is contained in:
Alexey Pegov
2011-09-06 09:55:39 +04:00
parent 4dc8bfee06
commit 7dbb745921
@@ -58,6 +58,31 @@ class Test {
doTest(before, toPaste, expected)
}
void _testStringBeforeAnotherStringShouldNotIncreaseIndentOfTheFollowingString() {
def before = '''\
class Test {
void test() {
<caret> int a = 100;
int b = 200;
}\
'''
def toPaste = '''\
int b = 200;
'''
def expected = '''\
class Test {
void test() {
int b = 200;
<caret> int a = 100;
int b = 200;
}\
'''
doTest(before, toPaste, expected)
}
void testJavaComplexBlockWithDecreasedIndent() {
def before = '''\
class Test {