Add test on bytecode text
Test data should be a Kotlin source file with zero or more comments e.g. of the form: '// 1 INVOKEVIRTUAL'. The test then checks that the generated bytecode for this file contains exactly one occurrence of the string 'INVOKEVIRTUAL'
This commit is contained in:
@@ -54,11 +54,4 @@ public class FunctionGenTest extends CodegenTestCase {
|
||||
assertTrue((Boolean) foo.invoke(null, "lala"));
|
||||
assertFalse((Boolean) foo.invoke(null, "mama"));
|
||||
}
|
||||
|
||||
public void testPrivateDefaultArgs() throws Exception {
|
||||
loadFile("functions/privateDefaultArgs.kt");
|
||||
String text = generateToText();
|
||||
assertFalse(text.contains("INVOKEVIRTUAL"));
|
||||
assertTrue(text.contains("INVOKESPECIAL"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user