From 98db9c741f1c1f01d8eb8bd9262974a791dfe840 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 13 Feb 2012 21:07:09 +0400 Subject: [PATCH] Added test for main. --- idea/testData/templates/main.exp.kt | 3 +++ idea/testData/templates/main.kt | 0 .../plugin/codeInsight/LiveTemplatesTest.java | 18 ++++++++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 idea/testData/templates/main.exp.kt create mode 100644 idea/testData/templates/main.kt 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));