mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 20:44:55 +00:00
test fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user