From 6f3f1a11f453eb68d69c5abd4275e64c70950752 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Sat, 12 May 2012 21:37:01 +0400 Subject: [PATCH] Added test cases for StandardLibraryReferenceResolverTest. --- idea/testData/resolve/std/any.kt | 2 ++ idea/testData/resolve/std/function.kt | 4 +++ idea/testData/resolve/std/int.kt | 2 ++ idea/testData/resolve/std/nothing.kt | 2 ++ idea/testData/resolve/std/sure.kt | 2 ++ idea/testData/resolve/std/times.kt | 2 ++ idea/testData/resolve/std/tupleElement.kt | 2 ++ .../StandardLibraryReferenceResolverTest.java | 28 +++++++++++++++++++ 8 files changed, 44 insertions(+) create mode 100644 idea/testData/resolve/std/any.kt create mode 100644 idea/testData/resolve/std/function.kt create mode 100644 idea/testData/resolve/std/int.kt create mode 100644 idea/testData/resolve/std/nothing.kt create mode 100644 idea/testData/resolve/std/sure.kt create mode 100644 idea/testData/resolve/std/times.kt create mode 100644 idea/testData/resolve/std/tupleElement.kt diff --git a/idea/testData/resolve/std/any.kt b/idea/testData/resolve/std/any.kt new file mode 100644 index 00000000000..3ffb22ab63f --- /dev/null +++ b/idea/testData/resolve/std/any.kt @@ -0,0 +1,2 @@ +var x : Any? +//jet.src/Any.jet:Any \ No newline at end of file diff --git a/idea/testData/resolve/std/function.kt b/idea/testData/resolve/std/function.kt new file mode 100644 index 00000000000..ce71f6e13f7 --- /dev/null +++ b/idea/testData/resolve/std/function.kt @@ -0,0 +1,4 @@ +fun f(p : () -> String) { + p.invoke() +} +//jet.src/Functions.jet:invoke \ No newline at end of file diff --git a/idea/testData/resolve/std/int.kt b/idea/testData/resolve/std/int.kt new file mode 100644 index 00000000000..e5e0c81870b --- /dev/null +++ b/idea/testData/resolve/std/int.kt @@ -0,0 +1,2 @@ +val x : Int? +//jet/Numbers.jet:Int \ No newline at end of file diff --git a/idea/testData/resolve/std/nothing.kt b/idea/testData/resolve/std/nothing.kt new file mode 100644 index 00000000000..85036d6d450 --- /dev/null +++ b/idea/testData/resolve/std/nothing.kt @@ -0,0 +1,2 @@ +var x : Nothing +//jet.src/Nothing.jet:Nothing \ No newline at end of file diff --git a/idea/testData/resolve/std/sure.kt b/idea/testData/resolve/std/sure.kt new file mode 100644 index 00000000000..e6f03137c38 --- /dev/null +++ b/idea/testData/resolve/std/sure.kt @@ -0,0 +1,2 @@ +val x = 5.sure() +//jet/Library.jet:sure \ No newline at end of file diff --git a/idea/testData/resolve/std/times.kt b/idea/testData/resolve/std/times.kt new file mode 100644 index 00000000000..88f72ff5c56 --- /dev/null +++ b/idea/testData/resolve/std/times.kt @@ -0,0 +1,2 @@ +val x = 2.0 * 3.0 +//jet/Numbers.jet:times \ No newline at end of file diff --git a/idea/testData/resolve/std/tupleElement.kt b/idea/testData/resolve/std/tupleElement.kt new file mode 100644 index 00000000000..46e9f59593b --- /dev/null +++ b/idea/testData/resolve/std/tupleElement.kt @@ -0,0 +1,2 @@ +var x = #(1, 2)._1 +//jet.src/Tuples.jet:_1 \ No newline at end of file diff --git a/idea/tests/org/jetbrains/jet/plugin/references/StandardLibraryReferenceResolverTest.java b/idea/tests/org/jetbrains/jet/plugin/references/StandardLibraryReferenceResolverTest.java index 6c539bebd6d..cc3d5a1ba21 100644 --- a/idea/tests/org/jetbrains/jet/plugin/references/StandardLibraryReferenceResolverTest.java +++ b/idea/tests/org/jetbrains/jet/plugin/references/StandardLibraryReferenceResolverTest.java @@ -36,6 +36,34 @@ import java.util.List; * @since 5/11/12 */ public class StandardLibraryReferenceResolverTest extends ResolveTestCase { + public void testAny() throws Exception { + doTest(); + } + + public void testFunction() throws Exception { + doTest(); + } + + public void testInt() throws Exception { + doTest(); + } + + public void testNothing() throws Exception { + doTest(); + } + + public void testSure() throws Exception { + doTest(); + } + + public void testTimes() throws Exception { + doTest(); + } + + public void testTupleElement() throws Exception { + doTest(); + } + public void testUnit() throws Exception { doTest(); }