Update tests according to new formatter behavior
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun foo(x: Boolean) {
|
||||
try {
|
||||
x
|
||||
} catch(e: <caret>Exception) {
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ fun foo() {
|
||||
try {
|
||||
for (i in 1..100) {
|
||||
}
|
||||
} catch(e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fun foo() {
|
||||
try {
|
||||
val x = 1
|
||||
} catch(e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ fun foo() {
|
||||
try {
|
||||
a = "aaa"
|
||||
b = "aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
}
|
||||
|
||||
a.charAt(1)
|
||||
|
||||
@@ -2,6 +2,6 @@ fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
"aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
"aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
} catch(e: <selection>Exception</selection>) {
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
@@ -1229,7 +1229,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
<caret>
|
||||
}${" "}
|
||||
"""
|
||||
@@ -1243,7 +1243,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(<caret>) {
|
||||
} catch (<caret>) {
|
||||
}
|
||||
"""
|
||||
)
|
||||
@@ -1256,7 +1256,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(<caret>) {
|
||||
} catch (<caret>) {
|
||||
}
|
||||
"""
|
||||
)
|
||||
@@ -1269,7 +1269,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(<caret>) {
|
||||
} catch (<caret>) {
|
||||
}
|
||||
"""
|
||||
)
|
||||
@@ -1282,7 +1282,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
<caret>
|
||||
}
|
||||
"""
|
||||
@@ -1297,7 +1297,7 @@ class SmartEnterTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
,
|
||||
"""
|
||||
try {
|
||||
} catch(e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
} finally {
|
||||
<caret>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user