This commit is contained in:
Dmitry Jemerov
2011-04-07 13:21:28 +02:00
parent 0af4b3b4c1
commit b722300db7
2 changed files with 8 additions and 0 deletions
@@ -185,6 +185,11 @@ public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
binOpTest("fun foo(a: Int, b: Int): Int = if (a != b) 1 else 0", 5, 3, 1);
}
public void testGE() throws Exception {
binOpTest("fun foo(a: Int, b: Int): Int = if (a >= b) 1 else 0", 5, 5, 1);
binOpTest("fun foo(a: Int, b: Int): Int = if (a >= b) 1 else 0", 3, 5, 0);
}
public void testIfNoElse() throws Exception {
loadFile("ifNoElse.jet");
System.out.println(generateToText());