Added test cases for StandardLibraryReferenceResolverTest.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
var x : <ref>Any?
|
||||||
|
//jet.src/Any.jet:Any
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
fun f(p : () -> String) {
|
||||||
|
p.<ref>invoke()
|
||||||
|
}
|
||||||
|
//jet.src/Functions.jet:invoke
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
val x : <ref>Int?
|
||||||
|
//jet/Numbers.jet:Int
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
var x : <ref>Nothing
|
||||||
|
//jet.src/Nothing.jet:Nothing
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
val x = 5.<ref>sure()
|
||||||
|
//jet/Library.jet:sure
|
||||||
@@ -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
|
||||||
+28
@@ -36,6 +36,34 @@ import java.util.List;
|
|||||||
* @since 5/11/12
|
* @since 5/11/12
|
||||||
*/
|
*/
|
||||||
public class StandardLibraryReferenceResolverTest extends ResolveTestCase {
|
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 {
|
public void testUnit() throws Exception {
|
||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user