diff --git a/idea/testData/templates/main.exp.kt b/idea/testData/templates/main.exp.kt new file mode 100644 index 00000000000..27e64de1f8e --- /dev/null +++ b/idea/testData/templates/main.exp.kt @@ -0,0 +1,3 @@ +fun main(args : Array) { + +} diff --git a/idea/testData/templates/main.kt b/idea/testData/templates/main.kt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java index aac4be2549f..39213b0a0fd 100644 --- a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java @@ -27,9 +27,15 @@ import java.util.Arrays; */ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase { public void testSout() { - start(); + paremeterless(); + } - checkAfter(); + public void testSerr() { + paremeterless(); + } + + public void testMain() { + paremeterless(); } public void testIter() { @@ -43,6 +49,14 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase { checkAfter(); } + + + private void paremeterless() { + start(); + + checkAfter(); + } + private void start() { myFixture.configureByFile(getTestName(true) + ".kt"); myFixture.type(getTestName(true));