From b80afe44b53b14139513d82a17995bfa9f653881 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 20 Mar 2012 19:17:24 +0400 Subject: [PATCH] #KT-1604 Auto-completion of .sure() incorrectly imports jet.sure - test --- idea/testData/completion/handlers/SureInsert.kt | 3 +++ idea/testData/completion/handlers/SureInsert.kt.after | 3 +++ .../jet/completion/handlers/CompletionHandlerTest.java | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 idea/testData/completion/handlers/SureInsert.kt create mode 100644 idea/testData/completion/handlers/SureInsert.kt.after diff --git a/idea/testData/completion/handlers/SureInsert.kt b/idea/testData/completion/handlers/SureInsert.kt new file mode 100644 index 00000000000..0daa1455f68 --- /dev/null +++ b/idea/testData/completion/handlers/SureInsert.kt @@ -0,0 +1,3 @@ +fun main(args : Array) { + "".sur +} \ No newline at end of file diff --git a/idea/testData/completion/handlers/SureInsert.kt.after b/idea/testData/completion/handlers/SureInsert.kt.after new file mode 100644 index 00000000000..dc4a19cc514 --- /dev/null +++ b/idea/testData/completion/handlers/SureInsert.kt.after @@ -0,0 +1,3 @@ +fun main(args : Array) { + "".sure() +} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java b/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java index 918ebc66ef1..52efa9f6c64 100644 --- a/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java +++ b/idea/tests/org/jetbrains/jet/completion/handlers/CompletionHandlerTest.java @@ -60,6 +60,10 @@ public class CompletionHandlerTest extends LightCompletionTestCase { doTest(); } + public void testSureInsert() { + doTest(); + } + public void doTest() { doTest(CompletionType.BASIC, 2, null); }