some debug print commented

This commit is contained in:
Alex Tkachman
2012-09-23 18:04:14 +02:00
parent 1d5636ea6a
commit ee784eb2fe
4 changed files with 5 additions and 5 deletions
@@ -386,7 +386,7 @@ public class ClassGenTest extends CodegenTestCase {
public void testKt1018() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt1018.kt");
System.out.println(generateToText());
//System.out.println(generateToText());
}
public void testKt1120() throws Exception {
@@ -239,7 +239,7 @@ public class ControlStructuresTest extends CodegenTestCase {
loadText("fun foo(a: String?, b: String?): Boolean = a == null && b !== null && null == a && null !== b");
String text = generateToText();
assertTrue(!text.contains("java/lang/Object.equals"));
System.out.println(text);
//System.out.println(text);
final Method main = generateFunction();
assertEquals(true, main.invoke(null, null, "lala"));
assertEquals(false, main.invoke(null, null, null));
@@ -442,6 +442,6 @@ public class ControlStructuresTest extends CodegenTestCase {
public void testForInSmartCastedToArray() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("controlStructures/forInSmartCastedToArray.kt");
System.out.println(generateToText());
//System.out.println(generateToText());
}
}
@@ -127,7 +127,7 @@ public class FunctionGenTest extends CodegenTestCase {
public void testKt1199() {
blackBoxFile("regressions/kt1199.kt");
System.out.println(generateToText());
//System.out.println(generateToText());
}
public void testFunction() throws InvocationTargetException, IllegalAccessException {
@@ -118,7 +118,7 @@ public class VarArgTest extends CodegenTestCase {
public void testArrayAsVararg2 () throws InvocationTargetException, IllegalAccessException {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
loadText("private fun asList(vararg elems: String) = elems; fun test(ts1: Array<String>, ts2: String) = asList(*ts1, ts2); ");
System.out.println(generateToText());
//System.out.println(generateToText());
final Method main = generateFunction("test");
Object invoke = main.invoke(null, new Object[] {new String[] {"mama"}, "papa" });
assertInstanceOf(invoke, String[].class);