Added test cases for StandardLibraryReferenceResolverTest.

This commit is contained in:
Evgeny Gerashchenko
2012-05-12 21:37:01 +04:00
parent cfb0844706
commit 6f3f1a11f4
8 changed files with 44 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
var x : <ref>Any?
//jet.src/Any.jet:Any
+4
View File
@@ -0,0 +1,4 @@
fun f(p : () -> String) {
p.<ref>invoke()
}
//jet.src/Functions.jet:invoke
+2
View File
@@ -0,0 +1,2 @@
val x : <ref>Int?
//jet/Numbers.jet:Int
+2
View File
@@ -0,0 +1,2 @@
var x : <ref>Nothing
//jet.src/Nothing.jet:Nothing
+2
View File
@@ -0,0 +1,2 @@
val x = 5.<ref>sure()
//jet/Library.jet:sure
+2
View File
@@ -0,0 +1,2 @@
val x = 2.0 <ref>* 3.0
//jet/Numbers.jet:times
@@ -0,0 +1,2 @@
var x = #(1, 2).<ref>_1
//jet.src/Tuples.jet:_1
@@ -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();
}