Formatter test is generated now

This commit is contained in:
Andrey Breslav
2013-09-20 15:02:44 +04:00
parent 9d7b3a7a96
commit 8952365ae3
80 changed files with 276 additions and 229 deletions
@@ -0,0 +1,6 @@
fun some(): Int {
try {
}
catch () {
}<caret>
}
@@ -0,0 +1,7 @@
fun some(): Int {
try {
}
catch () {
}
<caret>
}
@@ -0,0 +1,7 @@
fun some(): Int {
try {
}
catch () {
}
finally {}<caret>
}
@@ -0,0 +1,8 @@
fun some(): Int {
try {
}
catch () {
}
finally {}
<caret>
}
@@ -0,0 +1 @@
import java.util.ArrayList<caret>
@@ -0,0 +1,2 @@
import java.util.ArrayList
<caret>
@@ -0,0 +1,4 @@
fun some(): Int {
try {
}<caret>
}
@@ -0,0 +1,5 @@
fun some(): Int {
try {
}
<caret>
}
@@ -0,0 +1,3 @@
fun test() {
some.test().<caret>
}
@@ -0,0 +1,4 @@
fun test() {
some.test().
<caret>
}
@@ -0,0 +1,3 @@
fun some() {
do<caret>
}
@@ -0,0 +1,4 @@
fun some() {
do
<caret>
}
@@ -0,0 +1,2 @@
fun testParam(<caret>) {
}
@@ -0,0 +1,4 @@
fun testParam(
<caret>
) {
}
@@ -0,0 +1,2 @@
fun some() {
for (var i in 1..10)<caret>
@@ -0,0 +1,3 @@
fun some() {
for (var i in 1..10)
<caret>
@@ -0,0 +1,7 @@
package testing
private fun times<T>(times : Int, body : () -> T) {}
fun main(args: Array<String>) {
times(3) {<caret>}
}
@@ -0,0 +1,9 @@
package testing
private fun times<T>(times : Int, body : () -> T) {}
fun main(args: Array<String>) {
times(3) {
<caret>
}
}
@@ -0,0 +1 @@
fun test() =<caret>
@@ -0,0 +1,2 @@
fun test() =
<caret>
+3
View File
@@ -0,0 +1,3 @@
fun some() {
if (3 > 5)<caret>
}
@@ -0,0 +1,4 @@
fun some() {
if (3 > 5)
<caret>
}
@@ -0,0 +1,2 @@
fun testParam(a : String, b : Int,<caret>) {
}
@@ -0,0 +1,3 @@
fun testParam(a : String, b : Int,
<caret>) {
}
@@ -0,0 +1 @@
val a =<caret>
@@ -0,0 +1,2 @@
val a =
<caret>
@@ -0,0 +1,5 @@
fun test() {
testVeryLong(12,<caret>)
}
// SET_TRUE: ALIGN_MULTILINE_PARAMETERS_IN_CALLS
@@ -0,0 +1,6 @@
fun test() {
testVeryLong(12,
<caret>)
}
// SET_TRUE: ALIGN_MULTILINE_PARAMETERS_IN_CALLS
@@ -0,0 +1,6 @@
fun test() {
testVeryLong(12,
<caret>)
}
// SET_TRUE: ALIGN_MULTILINE_PARAMETERS_IN_CALLS
@@ -0,0 +1,3 @@
fun some() {
var t = 12
while (t > 0)<caret>
@@ -0,0 +1,4 @@
fun some() {
var t = 12
while (t > 0)
<caret>