some debug print commented
This commit is contained in:
@@ -386,7 +386,7 @@ public class ClassGenTest extends CodegenTestCase {
|
|||||||
public void testKt1018() throws Exception {
|
public void testKt1018() throws Exception {
|
||||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||||
blackBoxFile("regressions/kt1018.kt");
|
blackBoxFile("regressions/kt1018.kt");
|
||||||
System.out.println(generateToText());
|
//System.out.println(generateToText());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testKt1120() throws Exception {
|
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");
|
loadText("fun foo(a: String?, b: String?): Boolean = a == null && b !== null && null == a && null !== b");
|
||||||
String text = generateToText();
|
String text = generateToText();
|
||||||
assertTrue(!text.contains("java/lang/Object.equals"));
|
assertTrue(!text.contains("java/lang/Object.equals"));
|
||||||
System.out.println(text);
|
//System.out.println(text);
|
||||||
final Method main = generateFunction();
|
final Method main = generateFunction();
|
||||||
assertEquals(true, main.invoke(null, null, "lala"));
|
assertEquals(true, main.invoke(null, null, "lala"));
|
||||||
assertEquals(false, main.invoke(null, null, null));
|
assertEquals(false, main.invoke(null, null, null));
|
||||||
@@ -442,6 +442,6 @@ public class ControlStructuresTest extends CodegenTestCase {
|
|||||||
public void testForInSmartCastedToArray() {
|
public void testForInSmartCastedToArray() {
|
||||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||||
blackBoxFile("controlStructures/forInSmartCastedToArray.kt");
|
blackBoxFile("controlStructures/forInSmartCastedToArray.kt");
|
||||||
System.out.println(generateToText());
|
//System.out.println(generateToText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public class FunctionGenTest extends CodegenTestCase {
|
|||||||
|
|
||||||
public void testKt1199() {
|
public void testKt1199() {
|
||||||
blackBoxFile("regressions/kt1199.kt");
|
blackBoxFile("regressions/kt1199.kt");
|
||||||
System.out.println(generateToText());
|
//System.out.println(generateToText());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testFunction() throws InvocationTargetException, IllegalAccessException {
|
public void testFunction() throws InvocationTargetException, IllegalAccessException {
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class VarArgTest extends CodegenTestCase {
|
|||||||
public void testArrayAsVararg2 () throws InvocationTargetException, IllegalAccessException {
|
public void testArrayAsVararg2 () throws InvocationTargetException, IllegalAccessException {
|
||||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||||
loadText("private fun asList(vararg elems: String) = elems; fun test(ts1: Array<String>, ts2: String) = asList(*ts1, ts2); ");
|
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");
|
final Method main = generateFunction("test");
|
||||||
Object invoke = main.invoke(null, new Object[] {new String[] {"mama"}, "papa" });
|
Object invoke = main.invoke(null, new Object[] {new String[] {"mama"}, "papa" });
|
||||||
assertInstanceOf(invoke, String[].class);
|
assertInstanceOf(invoke, String[].class);
|
||||||
|
|||||||
Reference in New Issue
Block a user