From 1060e441373877df46b37e7deda4ee7ce40c86d7 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 13 Feb 2012 21:11:13 +0400 Subject: [PATCH] Added test for soutv. --- idea/testData/templates/soutv.exp.kt | 5 +++++ idea/testData/templates/soutv.kt | 5 +++++ .../jet/plugin/codeInsight/LiveTemplatesTest.java | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 idea/testData/templates/soutv.exp.kt create mode 100644 idea/testData/templates/soutv.kt diff --git a/idea/testData/templates/soutv.exp.kt b/idea/testData/templates/soutv.exp.kt new file mode 100644 index 00000000000..48cc752b70f --- /dev/null +++ b/idea/testData/templates/soutv.exp.kt @@ -0,0 +1,5 @@ +fun main(args : Array) { + val x = 5 + val y = "str" + println("y = ${y}") +} diff --git a/idea/testData/templates/soutv.kt b/idea/testData/templates/soutv.kt new file mode 100644 index 00000000000..613ecf17295 --- /dev/null +++ b/idea/testData/templates/soutv.kt @@ -0,0 +1,5 @@ +fun main(args : Array) { + val x = 5 + val y = "str" + +} diff --git a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java index 39213b0a0fd..1cec8a29a6c 100644 --- a/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/codeInsight/LiveTemplatesTest.java @@ -38,6 +38,16 @@ public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase { paremeterless(); } + public void testSoutv() { + start(); + + assertStringItems("args", "x", "y"); + type("y"); + nextTab(); + + checkAfter(); + } + public void testIter() { start();