some debug output off
This commit is contained in:
@@ -39,7 +39,7 @@ public class FunctionGenTest extends CodegenTestCase {
|
||||
loadText("fun foo(x: String?, y: Any?) = x + y");
|
||||
String text = generateToText();
|
||||
assertTrue(text.contains(".stringPlus"));
|
||||
System.out.println(text);
|
||||
// System.out.println(text);
|
||||
Method foo = generateFunction();
|
||||
assertEquals("something239", foo.invoke(null, "something", 239));
|
||||
assertEquals("null239", foo.invoke(null, null, 239));
|
||||
@@ -52,7 +52,7 @@ public class FunctionGenTest extends CodegenTestCase {
|
||||
loadText("fun foo(x: String, y: Any?) = x + y + 120");
|
||||
String text = generateToText();
|
||||
assertFalse(text.contains(".stringPlus"));
|
||||
System.out.println(text);
|
||||
// System.out.println(text);
|
||||
Method foo = generateFunction();
|
||||
assertEquals("something239120", foo.invoke(null, "something", 239));
|
||||
assertEquals("null239120", foo.invoke(null, null, 239));
|
||||
|
||||
@@ -334,7 +334,7 @@ public class PrimitiveTypesTest extends CodegenTestCase {
|
||||
" System.out?.println(f(six))\n" +
|
||||
" return \"OK\"" +
|
||||
"}");
|
||||
System.out.println(generateToText());
|
||||
// System.out.println(generateToText());
|
||||
blackBox();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public class JetNpeTest extends CodegenTestCase {
|
||||
|
||||
public void testNull () throws Exception {
|
||||
loadText("fun box() = if(null.sure() == 10) \"OK\" else \"fail\"");
|
||||
System.out.println(generateToText());
|
||||
// System.out.println(generateToText());
|
||||
Method box = generateFunction("box");
|
||||
assertThrows(box, NullPointerException.class, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user