This commit is contained in:
honfika@gmail.com
2015-11-30 09:22:31 +01:00
parent 0cf0df67ea
commit 15c09a2d21

View File

@@ -164,12 +164,12 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
for (int i = 0; i < code.code.size(); i++) {
AVM2Instruction ins = code.code.get(i);
int length = ins.getBytesLength();
expected.put(ins.offset, i);
expectedNearest.put(ins.offset, i);
Assert.assertEquals(code.pos2adr(i), ins.offset);
expected.put(ins.getOffset(), i);
expectedNearest.put(ins.getOffset(), i);
Assert.assertEquals(code.pos2adr(i), ins.getOffset());
for (int j = 1; j < length; j++) {
expected.put(ins.offset + j, -1);
expectedNearest.put(ins.offset + j, i + 1);
expected.put(ins.getOffset() + j, -1);
expectedNearest.put(ins.getOffset() + j, i + 1);
}
}