Minor: add test that output at scratch line with spaces at the beginning is aligned properly

This commit is contained in:
Natalia Selezneva
2018-05-24 14:30:08 +03:00
parent db63877690
commit 98fe8eaa42
4 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
val a = 1 // RESULT: val a: Int
a // RESULT: 1
a // RESULT: 1

View File

@@ -0,0 +1,3 @@
val a = 1
a
a

View File

@@ -0,0 +1,3 @@
val a = 1
a // RESULT: 1
a // RESULT: 1

View File

@@ -56,6 +56,11 @@ public class ScratchRunActionTestGenerated extends AbstractScratchRunActionTest
runTest("idea/testData/scratch/simpleFun.kts");
}
@TestMetadata("spacesAtLineStart.kts")
public void testSpacesAtLineStart() throws Exception {
runTest("idea/testData/scratch/spacesAtLineStart.kts");
}
@TestMetadata("stdlibFun.kts")
public void testStdlibFun() throws Exception {
runTest("idea/testData/scratch/stdlibFun.kts");
@@ -129,6 +134,11 @@ public class ScratchRunActionTestGenerated extends AbstractScratchRunActionTest
runTest("idea/testData/scratch/simpleFun.kts");
}
@TestMetadata("spacesAtLineStart.kts")
public void testSpacesAtLineStart() throws Exception {
runTest("idea/testData/scratch/spacesAtLineStart.kts");
}
@TestMetadata("stdlibFun.kts")
public void testStdlibFun() throws Exception {
runTest("idea/testData/scratch/stdlibFun.kts");