From db8fa0dd0a551541b062fb62f9b8553d4c7884ab Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 13 Feb 2012 21:18:12 +0400 Subject: [PATCH] Added test for soutp. --- idea/testData/templates/soutp.exp.kt | 5 +++++ idea/testData/templates/soutp.kt | 5 +++++ .../jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 idea/testData/templates/soutp.exp.kt create mode 100644 idea/testData/templates/soutp.kt diff --git a/idea/testData/templates/soutp.exp.kt b/idea/testData/templates/soutp.exp.kt new file mode 100644 index 00000000000..f2ea1f6b927 --- /dev/null +++ b/idea/testData/templates/soutp.exp.kt @@ -0,0 +1,5 @@ +fun main(args : Array) { + fun secondary(x : Int, y : Int) { + println("x = [${x}], y = [${y}]") + } +} diff --git a/idea/testData/templates/soutp.kt b/idea/testData/templates/soutp.kt new file mode 100644 index 00000000000..b76b88f16f9 --- /dev/null +++ b/idea/testData/templates/soutp.kt @@ -0,0 +1,5 @@ +fun main(args : Array) { + fun secondary(x : Int, y : Int) { + + } +} diff --git a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java index 1cec8a29a6c..53d0f32b79c 100644 --- a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java @@ -48,6 +48,10 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase { checkAfter(); } + public void testSoutp() { + paremeterless(); + } + public void testIter() { start();